From 5cd23ec275dc4a4eadc9d1a4856c29cce897ad4a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 6 Dec 2009 18:46:13 +0000 Subject: #645796 by arianek and lisarex: Update Trigger module to new help standard. --- modules/trigger/trigger.module | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'modules/trigger') diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 644be05dd..975842c41 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -23,10 +23,16 @@ function trigger_help($path, $arg) { return $explanation . '

' . t('Below you can assign actions to run when certain taxonomy-related triggers happen. For example, you could send an e-mail to an administrator when a term is deleted.') . '

'; case 'admin/structure/trigger/user': return $explanation . '

' . t("Below you can assign actions to run when certain user-related triggers happen. For example, you could send an e-mail to an administrator when a user account is deleted.") . '

'; + case 'admin/help#trigger': - $output = '

' . t('The Trigger module provides the ability to trigger actions upon system events, such as when new content is added or when a user logs in.', array('@actions' => url('admin/config/system/actions'))) . '

'; - $output .= '

' . t('The combination of actions and triggers can perform many useful tasks, such as e-mailing an administrator if a user account is deleted, or automatically unpublishing comments that contain certain words. By default, there are five "contexts" of events (Comments, Content, Cron, Taxonomy, and Users), but more may be added by additional modules.') . '

'; - $output .= '

' . t('For more information, see the online handbook entry for Trigger module.', array('@trigger' => 'http://drupal.org/handbook/modules/trigger/')) . '

'; + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Trigger module provides the ability to trigger actions upon system events, such as when new content is added or when a user logs in. For more information, see the online handbook entry for Trigger module.', array('@trigger' => 'http://drupal.org/handbook/modules/trigger/')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Configuring triggers') . '
'; + $output .= '
' . t('The combination of actions and triggers can perform many useful tasks, such as e-mailing an administrator if a user account is deleted, or automatically unpublishing comments that contain certain words. By default, there are five contexts of events (Comments, Content, Cron, Taxonomy, and Users), but more may be added by additional modules. Users with the appropriate permissions can configure triggers on the Triggers configuration page, and actions on the Actions configuration page.', array('@triggers-page' => url('admin/structure/trigger'), '@actions-page' => url('admin/config/system/actions'))) . '
'; + $output .= '
'; return $output; } } -- cgit v1.2.3