You are here

function ctools_context_node_convert_list in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/contexts/node.inc \ctools_context_node_convert_list()

Provide a list of ways that this context can be converted to a string.

1 call to ctools_context_node_convert_list()
ctools_context_node_edit_convert_list in plugins/contexts/node_edit_form.inc
Provide a list of ways that this context can be converted to a string.
1 string reference to 'ctools_context_node_convert_list'
node.inc in plugins/contexts/node.inc
Plugin to provide a node context. A node context is a node wrapped in a context object that can be utilized by anything that accepts contexts.

File

plugins/contexts/node.inc, line 158
Plugin to provide a node context. A node context is a node wrapped in a context object that can be utilized by anything that accepts contexts.

Code

function ctools_context_node_convert_list() {
  $tokens = token_info();
  foreach ($tokens['tokens']['node'] as $id => $info) {
    if (!isset($list[$id])) {
      $list[$id] = $info['name'];
    }
  }
  return $list;
}