You are here

function ace_editor_get_themes in Ace Code Editor 7

Returns the installed themes.

3 calls to ace_editor_get_themes()
ace_editor_field_formatter_settings_summary in ./ace_editor.module
Implements hook_field_formatter_settings_summary().
ace_editor_settings_form in ./ace_editor.admin.inc
Implements hook_form().
get_setting_form_elements in ./ace_editor.module
Field formatter settings form.

File

./ace_editor.module, line 510
Ace Editor module.

Code

function ace_editor_get_themes() {

  // Available themes are loaded on installation.
  $assets = variable_get('ace_editor_assets', array(
    'theme' => array(
      'cobalt' => 'Cobalt',
    ),
  ));
  $themes = $assets['theme'];
  asort($themes);
  return $themes;
}