function space_customizer_block::get_block_info in Spaces 6.2
Helper method to return the block info.
1 call to space_customizer_block::get_block_info()
- space_customizer_block::form in ./
spaces.spaces.inc - Implementation of form().
File
- ./
spaces.spaces.inc, line 135
Class
- space_customizer_block
- Customizer for feature blocks.
Code
function get_block_info($module, $delta) {
if (!isset($this->info[$module])) {
$this->info[$module] = module_invoke($module, 'block', 'list');
// If the block is provided by Views, doctor the info to strip out the
// view name leaving only the block's display name.
if ($module == 'views') {
foreach ($this->info[$module] as $k => $v) {
$viewname = strpos($v['info'], ':');
if ($viewname !== FALSE) {
$v['info'] = substr($v['info'], $viewname + 2);
$this->info[$module][$k] = $v;
}
}
}
}
return !empty($this->info[$module][$delta]['info']) ? $this->info[$module][$delta]['info'] : '';
}