function ctools_context_get_placeholders_from_argument in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 includes/context.inc \ctools_context_get_placeholders_from_argument()
Retrieve a list of empty contexts for all arguments.
Parameters
array $arguments:
Return value
array
See also
ctools_context_get_context_from_arguments()
13 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_comment_reply_get_contexts in page_manager/
plugins/ tasks/ comment_reply.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.
File
- includes/
context.inc, line 1220 - 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;
}