From a6e2c90217fe1e3ada13cde23b40a8066a417e3b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 5 Jan 2008 22:23:45 +0000 Subject: - Patch #206512 by jvandyk: fixed grammar mistake in status message. --- modules/trigger/trigger.admin.inc | 6 ++++-- 1 file 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.')); } } } -- cgit v1.2.3