trigger_options($type = 'all')
drupal/modules/trigger/trigger.module, line 486
Often we generate a select field of all actions. This function generates the options for that select.
$type One of 'node', 'user', 'comment'.
Array keyed by action ID.
function trigger_options($type = 'all') {
$options = array(t('Choose an action'));
foreach (actions_actions_map(actions_get_all_actions()) as $aid => $action) {
$options[$action['type']][$aid] = $action['description'];
}
if ($type == 'all') {
return $options;
}
else {
return $options[$type];
}
}