function pagestyle_block_title in Page Style 5
Same name and namespace in other branches
- 6 includes/pagestyle.block.inc \pagestyle_block_title()
- 7 includes/pagestyle.block.inc \pagestyle_block_title()
Block Title
Return value
"Page Style" and "Current Style" or "Theme" and "Current Theme".
See also
5 calls to pagestyle_block_title()
- pagestyle_block in ./
pagestyle.module - Implement hook_block().
- pagestyle_form in includes/
pagestyle.block.inc - Implement hook_form().
- theme_pagestyle_form in includes/
pagestyle.block.inc - Implement theme().
- theme_pagestyle_image in includes/
pagestyle.block.inc - Implement theme().
- theme_pagestyle_text in includes/
pagestyle.block.inc - Implement theme().
2 string references to 'pagestyle_block_title'
- pagestyle_admin_settings in includes/
pagestyle.admin.inc - Builds and returns the pagestyle settings form.
- pagestyle_uninstall in ./
pagestyle.install - Implement hook_uninstall().
File
- includes/
pagestyle.block.inc, line 185 - Block, page and theme functions.
Code
function pagestyle_block_title($title = 'title') {
$pagestyle_block_title = variable_get('pagestyle_block_title', 'page_style');
$pagestyle_block_title_text = t('Page Style');
$pagestyle_current_pagestyle_text = t('Current Style');
switch ($pagestyle_block_title) {
case 'theme':
$pagestyle_block_title_text = t('Theme');
$pagestyle_current_pagestyle_text = t('Current Theme');
break;
}
if ($title == 'title') {
return $pagestyle_block_title_text;
}
elseif ($title == 'current') {
return $pagestyle_current_pagestyle_text;
}
}