You are here

function patterns_locate_action in Patterns 6

Same name and namespace in other branches
  1. 6.2 patterns.module \patterns_locate_action()
  2. 7.2 includes/core/ \patterns_locate_action()
  3. 7 includes/core/ \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


./patterns.module, line 1455
Enables extremely simple adding/removing features to your site with minimal to no configuration


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;