You are here

function _jquerymobile_is_mobile_theme in jQuery Mobile module 7.2

Check for mobile theme.

11 calls to _jquerymobile_is_mobile_theme()
jquerymobile_element_info_alter in ./jquerymobile.module
Implements hook_element_info_alter().
jquerymobile_form_menu_edit_item_alter in modules/menu.inc
Implements hook_form_FORM_ID_alter().
jquerymobile_form_node_form_alter in modules/menu.inc
Implements hook_form_FORM_ID_alter().
jquerymobile_get_link_attributes in modules/menu.inc
Implements hook_get_link_attributes().
jquerymobile_menu in ./jquerymobile.module
Implements hook_menu().

... See full list

File

./jquerymobile.inc, line 192
Includes for jquerymobile

Code

function _jquerymobile_is_mobile_theme($theme = NULL) {
  if ($theme != NULL) {
    $result = db_select('jquerymobile', 'j')
      ->fields('j')
      ->condition('theme', $theme)
      ->execute()
      ->fetchAssoc();
    return $result['status'];
  }
  return FALSE;
}