function trigger_unassign


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL)
cle7 trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL)
elmsmedia7 trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL)
icor7 trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL)
meedjum_blog7 trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL)
mooc7 trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL)

Form constructor for confirmation page for removal of an assigned action.


$module: The tab of triggers the user will be directed to after successful removal of the action, or if the confirmation form is cancelled.

$hook: The name of the trigger hook, e.g., 'node_insert'.

$aid: The action ID.

See also


Related topics

1 string reference to 'trigger_unassign'
trigger_menu in modules/trigger/trigger.module
Implements hook_menu().


modules/trigger/, line 55
Admin page callbacks for the trigger module.


function trigger_unassign($form, $form_state, $module, $hook = NULL, $aid = NULL) {
  if (!isset($hook, $aid)) {

  $form['hook'] = array(
    '#type' => 'value',
    '#value' => $hook,
  $form['module'] = array(
    '#type' => 'value',
    '#value' => $module,
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,

  $action = actions_function_lookup($aid);
  $actions = actions_get_all_actions();

  $destination = 'admin/structure/trigger/' . $module;

  return confirm_form($form, t('Are you sure you want to unassign the action %title?', array('%title' => $actions[$action]['label'])), $destination, t('You can assign it again later if you wish.'), t('Unassign'), t('Cancel'));



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.