You are here

function simplecontext_convert_list in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 ctools_plugin_example/plugins/contexts/simplecontext.inc \simplecontext_convert_list()

Provide a list of sub-keywords.

This is used to provide keywords from the context for use in a content type, pane, etc.

1 string reference to 'simplecontext_convert_list'
simplecontext.inc in ctools_plugin_example/plugins/contexts/simplecontext.inc
Sample ctools context type plugin that shows how to create a context from an arg.

File

ctools_plugin_example/plugins/contexts/simplecontext.inc, line 110
Sample ctools context type plugin that shows how to create a context from an arg.

Code

function simplecontext_convert_list() {
  return array(
    'item1' => t('Item1'),
    'item2' => t('Item2'),
    'description' => t('Description'),
  );
}