function masquerade_block in Masquerade 6
Same name and namespace in other branches
- 5 masquerade.module \masquerade_block()
Implementation of hook_block().
File
- ./
masquerade.module, line 426 - masquerade.module
Code
function masquerade_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Masquerade');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
case 'view':
switch ($delta) {
case 0:
if (masquerade_access('autocomplete') || masquerade_access('user')) {
$block['subject'] = t('Masquerade');
$block['content'] = drupal_get_form('masquerade_block_1');
return $block;
}
break;
}
break;
}
}