function mobile_tools_block in Mobile Tools 6
Same name and namespace in other branches
- 5 mobile_tools.module \mobile_tools_block()
- 6.3 mobile_tools.module \mobile_tools_block()
- 6.2 mobile_tools.module \mobile_tools_block()
Implementation of hook_block() Provides the blocks that can be used to show a message to the user to go to the mobile or desktop version.
File
- ./
mobile_tools.module, line 94 - Mobile Tools provides a range of functionality assisting in creating a mobile Drupal site . this functionality contains:
Code
function mobile_tools_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Mobile Tools message block');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
break;
case 'view':
$block['content'] = mobile_tools_block_message();
return $block;
break;
}
}