function _jquerymobile_get_setting in jQuery Mobile module 7.2
Get a jquerymobile setting.
5 calls to _jquerymobile_get_setting()
- jquerymobile_load_files in ./
jquerymobile.inc - Load the required files.
- jquerymobile_page_default in ./
jquerymobile.inc - Menu callback; Generate a listing of promoted nodes.
- _jquerymobile_get_custom_themes in ./
jquerymobile.inc - Add custom swatches as options.
- _jquerymobile_node_view in modules/
node.inc - Private callback for hook_node_view().
- _jquerymobile_view_multiple in modules/
node.inc - Construct a drupal_render() style array from an array of loaded nodes.
File
- ./
jquerymobile.inc, line 232 - Includes for jquerymobile
Code
function _jquerymobile_get_setting($theme = NULL, $setting = NULL) {
if ($theme != NULL) {
$result = db_select('jquerymobile', 'j')
->fields('j', array(
$setting,
))
->condition('theme', $theme)
->execute()
->fetchAssoc();
return $result[strtolower($setting)];
}
return array();
}