You are here

function _mobile_tools_block_message in Mobile Tools 6.2

Helper function returning the configurable message for the notification.

1 call to _mobile_tools_block_message()
mobile_tools_block in ./mobile_tools.module
Implementation of hook_block().

File

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

Code

function _mobile_tools_block_message() {
  $site = mobile_tools_site_type();
  if ($site == 'mobile') {
    $text = variable_get('mobile_notification', 'View full site');
    $path = 'mt/desktop/' . filter_xss($_GET['q']);
  }
  elseif ($site == 'desktop') {
    $text = variable_get('desktop_notification', 'View mobile site');
    $path = 'mt/mobile/' . filter_xss($_GET['q']);
  }
  return l($text, $path);
}