You are here

function mobile_switch_theme_message in Mobile Switch 6

Same name and namespace in other branches
  1. 7 includes/mobile_switch.admin.inc \mobile_switch_theme_message()

Helper function to display a message.

The message are displayed on the Advanced and Development form if no mobile theme enabled.

See also

mobile_switch_advanced_settings_form()

mobile_switch_development_settings_form()

2 calls to mobile_switch_theme_message()
mobile_switch_advanced_settings_form in includes/mobile_switch.admin.inc
Form constructor for the Advanced settings form.
mobile_switch_development_settings_form in includes/mobile_switch.admin.inc
Form constructor for the Development settings form.

File

includes/mobile_switch.admin.inc, line 195
Administrative page callbacks for the Mobile Switch module.

Code

function mobile_switch_theme_message() {
  $message = t('Please configure the !basic-settings and enable a mobile theme.', array(
    '!basic-settings' => l(t('Basic settings'), 'admin/settings/mobile-switch'),
  ));
  $enable['mobile_switch_theme_message'] = array(
    '#value' => $message,
  );
  return $enable;
}