You are here

function _jquerymobile_get_custom_themes in jQuery Mobile module 7.2

Add custom swatches as options.

Allows renaming existing swatches or adding new ones.

File

./jquerymobile.inc, line 159
Includes for jquerymobile

Code

function _jquerymobile_get_custom_themes() {
  global $theme_key;
  $custom_themes = _jquerymobile_get_setting($theme_key, 'custom_themes');
  $options = array();
  if ($custom_themes) {
    $themes = explode("\n", $custom_themes);
    foreach ($themes as $theme) {
      $set = explode("|", $theme);
      $options[$set[0]] = $set[1];
    }
  }
  return $options;
}