You are here

function node_convert_rules_template_list in Node Convert 7

Helper - Gets a list of templates and id's.

Return value

array A associated array of template id's and names.

1 string reference to 'node_convert_rules_template_list'
node_convert_rules_action_info in ./node_convert.rules.inc
Implements hook_rules_action_info().

File

./node_convert.rules.inc, line 65
rules integration for the node_convert module

Code

function node_convert_rules_template_list() {
  $template_objects = node_convert_load_all_templates();
  $templates = array();
  foreach ($template_objects as $template) {
    $templates[$template->machine_name] = $template->name;
  }
  return $templates;
}