function custompage_block_view in Custom Page 7
File
- ./
custompage.module, line 121 - Custom Page Module
Code
function custompage_block_view($delta = '') {
$styled_paths = _custompage_get_mappings();
if (!is_array($styled_paths)) {
$styled_paths = array();
}
$block = array();
foreach ($styled_paths as $path) {
switch ($delta) {
case $path->key:
$block = array(
'subject' => $path->title,
'content' => theme($variables = array(
custompage_prefix($path->key),
FALSE,
)),
);
break;
}
}
return $block;
}