function custompage_block_info in Custom Page 7
Generate custom blocks
@returns block HTML
Parameters
delta offset:
File
- ./
custompage.module, line 102 - Custom Page Module
Code
function custompage_block_info() {
$styled_paths = _custompage_get_mappings();
if (!is_array($styled_paths)) {
$styled_paths = array();
}
$blocks = array();
foreach ($styled_paths as $path) {
// only create callbacks for page-type components
if ($path->type != 'block') {
continue;
}
$blocks[$path->key] = array(
'info' => $path->title,
);
}
return $blocks;
}