function page_manager_get_handler_title
Get the title for a given handler.
If the plugin has no 'admin title' function, the generic title of the plugin is used instead.
3 calls to page_manager_get_handler_title()
- page_manager_get_handler_operations in page_manager/
page_manager.admin.inc - Collect all the operations related to task handlers (variants) and build a menu.
- page_manager_handler_rearrange in page_manager/
page_manager.admin.inc - Rearrange the order of variants.
- page_manager_page_manager_handlers_list in page_manager/
page_manager.module - Callback to list handlers available for export.
File
-
page_manager/
page_manager.module, line 941
Code
function page_manager_get_handler_title($plugin, $handler, $task, $subtask_id) {
$function = ctools_plugin_get_function($plugin, 'admin title');
if ($function) {
return $function($handler, $task, $subtask_id);
}
else {
return $plugin['title'];
}
}