function actions_actions_map

cis7 actions.inc actions_actions_map($actions)
cle7 actions.inc actions_actions_map($actions)
elmsmedia7 actions.inc actions_actions_map($actions)
icor7 actions.inc actions_actions_map($actions)
meedjum_blog7 actions.inc actions_actions_map($actions)
mooc7 actions.inc actions_actions_map($actions)

Creates an associative array keyed by hashes of function names or IDs.

Hashes are used to prevent actual function names from going out into HTML forms and coming back.

Parameters

$actions: An associative array with function names or action IDs as keys and associative arrays with keys 'label', 'type', etc. as values. This is usually the output of actions_list() or actions_get_all_actions().

Return value

An associative array whose keys are hashes of the input array keys, and whose corresponding values are associative arrays with components 'callback', 'label', 'type', and 'configurable' from the input array.

3 calls to actions_actions_map()
system_actions_configure in modules/system/system.admin.inc
Menu callback; Creates the form for configuration of a single action.
system_actions_manage in modules/system/system.admin.inc
Menu callback; Displays an overview of available and configured actions.
trigger_assign_form in modules/trigger/trigger.admin.inc
Returns the form for assigning an action to a trigger.

File

includes/actions.inc, line 216
This is the actions engine for executing stored actions.

Code

function actions_actions_map($actions) {
  $actions_map = array();
  foreach ($actions as $callback => $array) {
    $key = drupal_hash_base64($callback);
    $actions_map[$key]['callback'] = isset($array['callback']) ? $array['callback'] : $callback;
    $actions_map[$key]['label'] = $array['label'];
    $actions_map[$key]['type'] = $array['type'];
    $actions_map[$key]['configurable'] = $array['configurable'];
  }
  return $actions_map;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.