You are here

function page_manager_edit_url in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 page_manager/page_manager.module \page_manager_edit_url()

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

14 calls to page_manager_edit_url()
ctools_context_handler_pre_render in includes/context-task-handler.inc
Called to execute actions that should happen before a handler is rendered.
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 1001
The page manager module provides a UI and API to manage pages.

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/build/pages/edit/{$task_name}";
  }
  return 'admin/build/pages/nojs/operation/' . $task_name . '/' . implode('/', $trail);
}