You are here

function ace_editor_init in Ace Code Editor 7

Implements hook_init().

File

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

Code

function ace_editor_init() {

  // Load the library assets if it was not installed before enabling the module.
  if (!variable_get('ace_editor_assets') && ace_editor_library_installed()) {
    ace_editor_get_assets();
  }

  // Load PHP consoles support for specific modules.
  if (module_exists('devel')) {
    $module_path = drupal_get_path('module', 'ace_editor');

    // Load module includes.
    module_load_include('inc', 'ace_editor', 'ace_editor.devel');
  }
}