function textsize_block_title in Text Size 6
Same name and namespace in other branches
- 5 includes/textsize.block.inc \textsize_block_title()
- 7 includes/textsize.block.inc \textsize_block_title()
Block Title
Return value
"Text Size" and "Current Size" or "Zoom" and "Current Zoom".
See also
6 calls to textsize_block_title()
- template_preprocess_textsize_form in includes/
textsize.block.inc - Process variables for textsize-form.tpl.php.
- template_preprocess_textsize_image in includes/
textsize.block.inc - Process variables for textsize-image.tpl.php.
- template_preprocess_textsize_text in includes/
textsize.block.inc - Process variables for textsize-text.tpl.php.
- textsize_block in ./
textsize.module - Implement hook_block().
- textsize_form in includes/
textsize.block.inc - Implement hook_form().
3 string references to 'textsize_block_title'
- textsize_admin_settings in includes/
textsize.admin.inc - Builds and returns the textsize settings form.
- textsize_block in ./
textsize.module - Implement hook_block().
- textsize_uninstall in ./
textsize.install - Implement hook_uninstall().
File
- includes/
textsize.block.inc, line 266 - block, page and theme functions.
Code
function textsize_block_title($title = 'title') {
$textsize_block_title = variable_get('textsize_block_title', 'text_size');
$textsize_block_title_text = t('Text Size');
$textsize_current_textsize_text = t('Current Size');
switch ($textsize_block_title) {
case 'zoom':
$textsize_block_title_text = t('Zoom');
$textsize_current_textsize_text = t('Current Zoom');
break;
}
if ($title == 'title') {
return $textsize_block_title_text;
}
elseif ($title == 'current') {
return $textsize_current_textsize_text;
}
}