function empty_page_extras_page_title_pattern_alter in Empty Page 7
Implementats hook_page_title_pattern_alter().
File
- modules/
empty_page_extras/ plugins/ page_title/ empty_page_extras.page_title.inc, line 6
Code
function empty_page_extras_page_title_pattern_alter(&$pattern, &$types) {
$menu_item = menu_get_item();
// Check that we're on an empty callback page.
$callbacks = empty_page_get_callbacks();
foreach ($callbacks as $cid => $callback) {
if ($menu_item['path'] == $callback->path) {
$pattern = variable_get('page_title_empty_page_' . $cid, '');
break;
}
}
}