trigger_unassign

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 trigger_unassign($form_state, $hook = NULL, $op = NULL, $aid = NULL)

Confirm removal of an assigned action.

Übergabeparameter

$hook

$op

$aid The action ID.

See also

trigger_unassign_submit()

Verwandte Themen

Code

modules/trigger/trigger.admin.inc, line 47

<?php
function trigger_unassign($form_state, $hook = NULL, $op = NULL, $aid = NULL) {
  if (!($hook && $op && $aid)) {
    drupal_goto('admin/build/trigger/assign');
  }

  $form['hook'] = array(
    '#type' => 'value',
    '#value' => $hook,
  );
  $form['operation'] = array(
    '#type' => 'value',
    '#value' => $op,
  );
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,
  );

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

  $destination = 'admin/build/trigger/' . ($hook == 'node' ? 'node' : $hook);

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen