function page_manager_edit_url

Form a URL to edit a given page given the trail.

14 calls to page_manager_edit_url()
ctools_task_handler_default_contextual_link in includes/context-task-handler.inc
Provides contextual link for a task as defined by the handler.
page_manager_edit_page_finish in page_manager/page_manager.admin.inc
Callback generated when the an operation edit finished.
page_manager_get_pages in page_manager/page_manager.admin.inc
Sort tasks into buckets based upon whether or not they have subtasks.
page_manager_http_response_admin_summary in page_manager/plugins/task_handlers/http_response.inc
page_manager_page_add_subtask in page_manager/plugins/tasks/page.admin.inc
Page callback to add a subtask.

... See full list

File

page_manager/page_manager.module, line 1119

Code

function page_manager_edit_url($task_name, $trail = array()) {
    if (!is_array($trail)) {
        $trail = array(
            $trail,
        );
    }
    if (empty($trail) || $trail == array(
        'summary',
    )) {
        return "admin/structure/pages/edit/{$task_name}";
    }
    return 'admin/structure/pages/nojs/operation/' . $task_name . '/' . implode('/', $trail);
}