function page_manager_get_task_id in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 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 972 - 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,
);
}
}