summaryrefslogtreecommitdiff
path: root/modules/trigger
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-01 16:50:12 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-01 16:50:12 +0000
commitff813ab62ca142f5c892846e56eb9044ffedd822 (patch)
tree6b0c5f22d7729fb579170ad3301aec31d99991d2 /modules/trigger
parent39d2e4af43d7d682391796a2cbfedfb0e956dbdc (diff)
downloadbrdo-ff813ab62ca142f5c892846e56eb9044ffedd822.tar.gz
brdo-ff813ab62ca142f5c892846e56eb9044ffedd822.tar.bz2
#564562 by Gábor Hojtsy, Bojhan, yoroy, and catch: Added 'System' configuration section.
Diffstat (limited to 'modules/trigger')
-rw-r--r--modules/trigger/trigger.admin.inc2
-rw-r--r--modules/trigger/trigger.module4
-rw-r--r--modules/trigger/trigger.test4
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/trigger/trigger.admin.inc b/modules/trigger/trigger.admin.inc
index 51d004036..2ab8cf764 100644
--- a/modules/trigger/trigger.admin.inc
+++ b/modules/trigger/trigger.admin.inc
@@ -176,7 +176,7 @@ function trigger_assign_form($form_state, $hook, $op, $description) {
}
else {
$form[$op]['none'] = array(
- '#markup' => t('No actions available for this trigger. <a href="@link">Add action</a>.', array('@link' => url('admin/settings/actions/manage')))
+ '#markup' => t('No actions available for this trigger. <a href="@link">Add action</a>.', array('@link' => url('admin/config/system/actions/manage')))
);
}
return $form;
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index c085741a0..281400fe5 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -11,7 +11,7 @@
* Implement hook_help().
*/
function trigger_help($path, $arg) {
- $explanation = '<p>' . t('Triggers are system events, such as when new content is added or when a user logs in. Trigger module combines these triggers with actions (functional tasks), such as unpublishing content or e-mailing an administrator. The <a href="@url">Actions settings page</a> contains a list of existing actions and provides the ability to create and configure additional actions.', array('@url' => url('admin/settings/actions'))) . '</p>';
+ $explanation = '<p>' . t('Triggers are system events, such as when new content is added or when a user logs in. Trigger module combines these triggers with actions (functional tasks), such as unpublishing content or e-mailing an administrator. The <a href="@url">Actions settings page</a> contains a list of existing actions and provides the ability to create and configure additional actions.', array('@url' => url('admin/config/system/actions'))) . '</p>';
switch ($path) {
case 'admin/structure/trigger/comment':
return $explanation . '<p>' . t('Below you can assign actions to run when certain comment-related triggers happen. For example, you could promote a post to the front page when a comment is added.') . '</p>';
@@ -24,7 +24,7 @@ function trigger_help($path, $arg) {
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/settings/actions'))) . '</p>';
+ $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>';
return $output;
diff --git a/modules/trigger/trigger.test b/modules/trigger/trigger.test
index ac6bf8b79..884982f83 100644
--- a/modules/trigger/trigger.test
+++ b/modules/trigger/trigger.test
@@ -150,7 +150,7 @@ class TriggerCronTestCase extends DrupalWebTestCase {
'actions_description' => $action_description,
'subject' => $action_description,
);
- $this->drupalPost('admin/settings/actions/configure/' . $hash, $edit, t('Save'));
+ $this->drupalPost('admin/config/system/actions/configure/' . $hash, $edit, t('Save'));
$edit = array('aid' => md5('1'));
$this->drupalPost('admin/structure/trigger/cron', $edit, t('Assign'));
@@ -160,7 +160,7 @@ class TriggerCronTestCase extends DrupalWebTestCase {
'actions_description' => $action_description,
'subject' => $action_description,
);
- $this->drupalPost('admin/settings/actions/configure/' . $hash, $edit, t('Save'));
+ $this->drupalPost('admin/config/system/actions/configure/' . $hash, $edit, t('Save'));
$edit = array('aid' => md5('2'));
$this->drupalPost('admin/structure/trigger/cron', $edit, t('Assign'));