function page_manager_poll in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 page_manager/plugins/tasks/poll.inc \page_manager_poll()
Entry point for our overridden node edit.
This function asks its assigned handlers who, if anyone, would like to run with it. If no one does, it passes through to Drupal core's node edit, which is node_page_edit().
1 string reference to 'page_manager_poll'
- page_manager_poll_menu_alter in page_manager/
plugins/ tasks/ poll.inc - Callback defined by page_manager_poll_page_manager_tasks().
File
- page_manager/
plugins/ tasks/ poll.inc, line 74
Code
function page_manager_poll() {
// Load my task plugin.
$task = page_manager_get_task('poll');
ctools_include('context');
ctools_include('context-task-handler');
$output = ctools_context_handler_render($task, '', array(), array());
if ($output !== FALSE) {
return $output;
}
module_load_include('inc', 'poll', 'poll.pages');
$function = 'poll_page';
foreach (module_implements('page_manager_override') as $module) {
$call = $module . '_page_manager_override';
if (($rc = $call('poll')) && function_exists($rc)) {
$function = $rc;
break;
}
}
// Otherwise, fall back.
return $function();
}