function _blockreference_block in Block reference 7.2
Helper to create a pretty block object from a moddelta.
5 calls to _blockreference_block()
- blockreference_autocomplete_value in ./
blockreference.module - Value callback for a blockreference autocomplete element.
- blockreference_field_widget_form in ./
blockreference.field.inc - Implements hook_field_widget_form().
- _blockreference_entityreference_link_links in ./
blockreference.module - Helper to make simple links from blocks for entityreference_link.
- _blockreference_find_blocks in ./
blockreference.module - Helper to find blocks that potentially match a search string, in the right order, altered by custom modules.
- _blockreference_formatter_get_block in ./
blockreference.module - Helper function for theming normal block views, returns appropriate block.
File
- ./
blockreference.module, line 317
Code
function _blockreference_block($module, $delta, $info = NULL) {
if (!$info) {
$infos = module_invoke($module, 'block_info');
$info = @$infos[$delta];
}
if ($info) {
$info = compact('module', 'delta') + $info;
$info['info'] = trim($info['info']);
return (object) $info;
}
}