You are here

function mobile_tools_switch_link_text in Mobile Tools 7.2

Same name and namespace in other branches
  1. 7.3 mobile_tools.module \mobile_tools_switch_link_text()

Get the text to display on the switch links

Pass the device group you want to link to. Ex: Go from desktop -> mobile $device_group = MOBILE_TOOLS_SITE_TYPE_MOBILE;

Parameters

string $device_group: Device group

Return value

string Returns the link text

1 call to mobile_tools_switch_link_text()
mobile_tools_block_message in ./mobile_tools.module
Helper function returning the configurable message for the notification
1 string reference to 'mobile_tools_switch_link_text'
mobile_tools_configuration_form in ./mobile_tools.admin.inc
Configuration form for the mobile device detection, redirection and notification

File

./mobile_tools.module, line 547
Functionality to ease the creation of mixed device environments.

Code

function mobile_tools_switch_link_text($device_group) {
  return variable_get('mobile_tools_switch_link_text', MOBILE_TOOLS_SWITCH_LINK_TEXT);
}