function empty_page_extras_page_title_settings in Empty Page 7
Implements hook_page_title_settings().
File
- modules/
empty_page_extras/ plugins/ page_title/ empty_page_extras.page_title.inc, line 21
Code
function empty_page_extras_page_title_settings() {
$settings = array();
// Add each empty page callback to the "Page Title" settings form.
$callbacks = empty_page_get_callbacks();
foreach ($callbacks as $cid => $callback) {
$label_args = empty($callback->page_title) ? '[no title]' : $callback->page_title;
$settings['page_title_empty_page_' . $cid] = array(
'label' => 'Empty Page Callback - %title',
'label arguments' => array(
'%title' => $label_args,
),
'description' => 'This pattern will be used for /%path',
'description arguments' => array(
'%path' => $callback->path,
),
'scopes' => array(
'global',
),
);
}
return $settings;
}