function domain_alias_block in Domain Access 6.2
Same name and namespace in other branches
- 7.3 domain_alias/domain_alias.module \domain_alias_block()
- 7.2 domain_alias/domain_alias.module \domain_alias_block()
Implement hook_block().
File
- domain_alias/
domain_alias.module, line 120 - Interface for advanced domain matching for Domain Access.
Code
function domain_alias_block($op = 'list', $delta = 0, $edit = array()) {
$blocks = array();
switch ($op) {
case 'list':
$blocks['domain_alias'] = array(
'info' => t('Domain alias switcher'),
'cache' => BLOCK_CACHE_PER_ROLE,
);
break;
case 'view':
$domains = domain_domains();
$output = 'Test';
$output = theme('domain_alias_block', $domains);
$blocks = array(
'subject' => t('Domain alias switcher'),
'content' => $output,
);
break;
}
return $blocks;
}