function patterns_locate_action in Patterns 6
Same name and namespace in other branches
- 6.2 patterns.module \patterns_locate_action()
- 7.2 includes/core/common.inc \patterns_locate_action()
- 7 includes/core/common.inc \patterns_locate_action()
2 calls to patterns_locate_action()
- patterns_implement_action in ./
patterns.module - Setup and run an action
- patterns_prepare_actions in ./
patterns.module
File
- ./
patterns.module, line 1455 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_locate_action($key, $actions_map) {
$result['key'] = $actions_map['map'][$key]['index'];
$result['title'] = $actions_map['patterns'][$actions_map['map'][$key]['pid']]['title'];
$result['file'] = $actions_map['patterns'][$actions_map['map'][$key]['pid']]['file'];
return $result;
}