summaryrefslogtreecommitdiff
path: root/modules/trigger
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-06 18:46:13 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-06 18:46:13 +0000
commit5cd23ec275dc4a4eadc9d1a4856c29cce897ad4a (patch)
tree2bbba72622d2ecb2dada8069a7d8626d1792ca0f /modules/trigger
parente7ac6347ac3184290f9045610935aae090120ac6 (diff)
downloadbrdo-5cd23ec275dc4a4eadc9d1a4856c29cce897ad4a.tar.gz
brdo-5cd23ec275dc4a4eadc9d1a4856c29cce897ad4a.tar.bz2
#645796 by arianek and lisarex: Update Trigger module to new help standard.
Diffstat (limited to 'modules/trigger')
-rw-r--r--modules/trigger/trigger.module12
1 files changed, 9 insertions, 3 deletions
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 . '<p>' . 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.') . '</p>';
case 'admin/structure/trigger/user':
return $explanation . '<p>' . 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.") . '</p>';
+
case 'admin/help#trigger':
- $output = '<p>' . t('The Trigger module provides the ability to trigger <a href="@actions">actions</a> upon system events, such as when new content is added or when a user logs in.', array('@actions' => url('admin/config/system/actions'))) . '</p>';
- $output .= '<p>' . 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.') . '</p>';
- $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@trigger">Trigger module</a>.', array('@trigger' => 'http://drupal.org/handbook/modules/trigger/')) . '</p>';
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . 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 <a href="@trigger">Trigger module</a>.', array('@trigger' => 'http://drupal.org/handbook/modules/trigger/')) . '</p>';
+ $output .= '<h3>' . t('Uses') . '</h3>';
+ $output .= '<dl>';
+ $output .= '<dt>' . t('Configuring triggers') . '</dt>';
+ $output .= '<dd>' . 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 <em>contexts</em> 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 <a href="@triggers-page">Triggers configuration page</a>, and actions on the <a href="@actions-page">Actions configuration page</a>.', array('@triggers-page' => url('admin/structure/trigger'), '@actions-page' => url('admin/config/system/actions'))) . '</dd>';
+ $output .= '</dl>';
return $output;
}
}