diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-01-05 22:23:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-01-05 22:23:45 +0000 |
commit | a6e2c90217fe1e3ada13cde23b40a8066a417e3b (patch) | |
tree | 309c69e5641c10c76d87af8d3ed848f7ba9457dd /modules | |
parent | 258b5760202eeb7140021cf15e6b7c51eba5127d (diff) | |
download | brdo-a6e2c90217fe1e3ada13cde23b40a8066a417e3b.tar.gz brdo-a6e2c90217fe1e3ada13cde23b40a8066a417e3b.tar.bz2 |
- Patch #206512 by jvandyk: fixed grammar mistake in status message.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/trigger/trigger.admin.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/trigger/trigger.admin.inc b/modules/trigger/trigger.admin.inc index 624982208..7f9f3266c 100644 --- a/modules/trigger/trigger.admin.inc +++ b/modules/trigger/trigger.admin.inc @@ -126,7 +126,8 @@ function trigger_assign_form($form_state, $hook, $op, $description) { $options = array(); $functions = array(); - // Restrict the options list to actions that declare support for this hook-op combination. + // Restrict the options list to actions that declare support for this hook-op + // combination. foreach (actions_list() as $func => $metadata) { if (isset($metadata['hooks']['any']) || (isset($metadata['hooks'][$hook]) && is_array($metadata['hooks'][$hook]) && (in_array($op, $metadata['hooks'][$hook])))) { $functions[] = $func; @@ -177,6 +178,7 @@ function trigger_assign_form($form_state, $hook, $op, $description) { } return $form; } + /** * Validation function for trigger_assign_form(). * @@ -187,7 +189,7 @@ function trigger_assign_form_validate($form, $form_state) { if (!empty($form_values['aid'])) { $aid = actions_function_lookup($form_values['aid']); if (db_result(db_query("SELECT aid FROM {trigger_assignments} WHERE hook = '%s' AND op = '%s' AND aid = '%s'", $form_values['hook'], $form_values['operation'], $aid))) { - form_set_error($form_values['operation'], t('The action you choose is already assigned to that trigger.')); + form_set_error($form_values['operation'], t('The action you chose is already assigned to that trigger.')); } } } |