function page_manager_blog

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_blog'
page_manager_blog_menu_alter in page_manager/plugins/tasks/blog.inc
Callback defined by page_manager_blog_page_manager_tasks().

File

page_manager/plugins/tasks/blog.inc, line 74

Code

function page_manager_blog() {
    // Load my task plugin.
    $task = page_manager_get_task('blog');
    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', 'blog', 'blog.pages');
    $function = 'blog_page_last';
    foreach (module_implements('page_manager_override') as $module) {
        $call = $module . '_page_manager_override';
        if (($rc = $call('blog')) && function_exists($rc)) {
            $function = $rc;
            break;
        }
    }
    // Otherwise, fall back.
    return $function();
}