You are here

function mobile_switch_block_block_info in Mobile Switch Block 7

Same name and namespace in other branches
  1. 7.2 mobile_switch_block.module \mobile_switch_block_block_info()

Implements hook_block_info().

File

./mobile_switch_block.module, line 250
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;
  return $blocks;
}