actions_function_lookup($hash)
files/drupal-6.7/includes/actions.inc, line 231
Given an md5 hash of a function name, return the function name.
Faster than actions_actions_map() when you only need the function name.
$hash MD5 hash of a function name
Function name
<?php
function actions_function_lookup($hash) {
$actions_list = actions_list();
foreach ($actions_list as $function => $array) {
if (md5($function) == $hash) {
return $function;
}
}
// Must be an instance; must check database.
$aid = db_result(db_query("SELECT aid FROM {actions} WHERE MD5(aid) = '%s' AND parameters <> ''", $hash));
return $aid;
}
?>