function homebox_block in Homebox 6.2
Same name and namespace in other branches
- 6.3 homebox.module \homebox_block()
File
- ./
homebox.module, line 695 - Homebox main file, takes care of global functions settings constants, etc.
Code
function homebox_block($op, $delta = NULL, $edit = array()) {
switch ($op) {
case 'list':
return array(
'custom' => array(
'info' => t('Homebox custom block'),
'cache' => BLOCK_NO_CACHE,
),
);
case 'view':
switch ($delta) {
case 'custom':
return array(
'subject' => isset($edit['homebox']->title_custom) ? strip_tags($edit['homebox']->title_custom) : t('Custom block'),
'content' => isset($edit['homebox']->content) ? filter_xss_admin(_filter_autop($edit['homebox']->content)) : t('Click the gear icon to edit.'),
);
}
}
}