1. drupal
    1. 6
    2. 8
    3. 7
6 – 7 actions_function_lookup($hash)

Given a hash of an action array key, returns the key (function or ID).

Faster than actions_actions_map() when you only need the function name or ID.


$hash Hash of a function name or action ID array key. The array key is a key into the return value of actions_list() (array key is the action function name) or actions_get_all_actions() (array key is the action ID).

Return value

The corresponding array key, or FALSE if no match is found.

▾ 7 functions call actions_function_lookup()

system_actions_configure_submit in modules/system/
Process system_actions_configure() form submissions.
system_actions_configure_validate in modules/system/
Validate system_actions_configure() form submissions.
trigger_assign_form in modules/trigger/
Returns the form for assigning an action to a trigger.
trigger_assign_form_submit in modules/trigger/
Submit function for trigger_assign_form().
trigger_assign_form_validate in modules/trigger/
Validation function for trigger_assign_form().
trigger_unassign in modules/trigger/
Confirm removal of an assigned action.
trigger_unassign_submit in modules/trigger/
Submit callback for trigger_unassign() form.


includes/, line 237

function actions_function_lookup($hash) {
  // Check for a function name match.
  $actions_list = actions_list();
  foreach ($actions_list as $function => $array) {
    if (drupal_hash_base64($function) == $hash) {
      return $function;
  $aid = FALSE;
  // Must be a configurable action; check database.
  $result = db_query("SELECT aid FROM {actions} WHERE parameters <> ''")->fetchAll(PDO::FETCH_ASSOC);
  foreach ($result as $row) {
    if (drupal_hash_base64($row['aid']) == $hash) {
      $aid = $row['aid'];
  return $aid;