function ctools_context_handler_select
Compare arguments to contexts for selection purposes.
Parameters
object $handler: The handler in question.
object $contexts: The context objects provided by the task.
Return value
bool TRUE if these contexts match the selection rules. NULL or FALSE otherwise.
2 calls to ctools_context_handler_select()
- ctools_context_handler_default_test in includes/
context-task-handler.inc - Default test function to see if a task handler should be rendered.
- page_manager_http_response_render in page_manager/
plugins/ task_handlers/ http_response.inc
File
-
includes/
context-task-handler.inc, line 286
Code
function ctools_context_handler_select($handler, $contexts) {
if (empty($handler->conf['access'])) {
return TRUE;
}
ctools_include('context');
return ctools_access($handler->conf['access'], $contexts);
}