You are here

function _block_subtitle_get_subtitle in Block Subtitle 7

Same name and namespace in other branches
  1. 6 block_subtitle.module \_block_subtitle_get_subtitle()

Function to get the subtitle of a block.

Parameters

object $block.: The block name.

Return value

string the block subtitle

2 calls to _block_subtitle_get_subtitle()
block_subtitle_form_alter in ./block_subtitle.module
Implements hook_form_alter().
block_subtitle_preprocess_block in ./block_subtitle.module
Implements hook_preprocess_block().

File

./block_subtitle.module, line 62
This module allows subtitles to be added to blocks

Code

function _block_subtitle_get_subtitle($block) {
  if (!isset($block->module) && !isset($block->delta)) {
    return FALSE;
  }
  $varname = 'block_subtitle_' . $block->module . '_' . $block->delta;
  return variable_get($varname, NULL);
}