You are here

function homebox_block_view in Homebox 7.2

Same name and namespace in other branches
  1. 7.3 homebox.module \homebox_block_view()

Implements hook_block_view().

File

./homebox.module, line 781
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_block_view($delta = '', $block) {
  switch ($delta) {
    case 'custom':
      return array(
        'subject' => isset($block->title_custom) ? strip_tags($block->title_custom) : t('Custom block'),
        'content' => isset($block->content) ? filter_xss_admin(_filter_autop($block->content)) : t('Click the gear icon to edit.'),
      );
  }
}