function mobile_switch_block_block_info in Mobile Switch Block 7.2
Same name and namespace in other branches
- 7 mobile_switch_block.module \mobile_switch_block_block_info()
Implements hook_block_info().
File
- ./
mobile_switch_block.module, line 304 - Extends the Mobile Switch module with an theme switch block.
Code
function mobile_switch_block_block_info() {
$blocks['switch']['info'] = t('Mobile switch');
$blocks['switch']['properties']['administrative'] = TRUE;
// Necessary for the correct functioning of the switch function for
// anonymous users if enabled block caching in the performance settings.
$blocks['switch']['cache'] = DRUPAL_NO_CACHE;
//DRUPAL_CACHE_PER_PAGE
return $blocks;
}