You are here

function mobile_tools_block in Mobile Tools 6.2

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_block()
  2. 6.3 mobile_tools.module \mobile_tools_block()
  3. 6 mobile_tools.module \mobile_tools_block()

Implementation of hook_block().

File

./mobile_tools.module, line 136
Primarily Drupal hooks.

Code

function mobile_tools_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks['mobile_tools_message'] = array(
        'info' => t('Mobile Tools message block'),
        'cache' => BLOCK_NO_CACHE,
      );
      return $blocks;
    case 'view':
      switch ($delta) {
        case 'mobile_tools_message':
          $block['content'] = _mobile_tools_block_message();
          break;
      }
      return $block;
  }
}