You are here

function ctools_context_get_placeholders_from_argument in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/context.inc \ctools_context_get_placeholders_from_argument()

Retrieve a list of empty contexts for all arguments.

11 calls to ctools_context_get_placeholders_from_argument()
ctools_context_load_contexts in includes/context.inc
Load a full array of contexts for an object.
page_manager_blog_user_get_contexts in page_manager/plugins/tasks/blog_user.inc
Callback to get context placeholders provided by this handler.
page_manager_contact_user_get_contexts in page_manager/plugins/tasks/contact_user.inc
Callback to get context placeholders provided by this handler.
page_manager_node_edit_get_contexts in page_manager/plugins/tasks/node_edit.inc
Callback to get context placeholders provided by this handler.
page_manager_node_view_get_contexts in page_manager/plugins/tasks/node_view.inc
Callback to get context placeholders provided by this handler.

... See full list

File

includes/context.inc, line 779
Contains code related to the ctools system of 'context'.

Code

function ctools_context_get_placeholders_from_argument($arguments) {
  $contexts = array();
  foreach ($arguments as $argument) {
    $context = ctools_context_get_context_from_argument($argument, NULL, TRUE);
    if ($context) {
      $contexts[ctools_context_id($argument, 'argument')] = $context;
    }
  }
  return $contexts;
}