You are here

function page_manager_get_task_id in Chaos Tool Suite (ctools) 6

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

Split a task name into a task id and subtask id, if applicable.

1 call to page_manager_get_task_id()
page_manager_get_page_cache in page_manager/page_manager.module
Get the cached changes to a given task handler.

File

page_manager/page_manager.module, line 827
The page manager module provides a UI and API to manage pages.

Code

function page_manager_get_task_id($task_name) {
  if (strpos($task_name, '-') !== FALSE) {
    return explode('-', $task_name, 2);
  }
  else {
    return array(
      $task_name,
      NULL,
    );
  }
}