You are here

function ace_editor_libraries_info in Ace Code Editor 7

Implements hook_libraries_info().

File

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

Code

function ace_editor_libraries_info() {
  $libraries['ace'] = array(
    'title' => 'Ace Editor',
    'vendor url' => 'http://ace.c9.io/',
    'download url' => 'https://github.com/ajaxorg/ace-builds/archive/master.zip',
    'version arguments' => array(
      'file' => 'package.json',
      'pattern' => '/"version": "(\\d+\\.+\\d+.+\\d+)"/',
    ),
    'files' => array(
      'js' => array(
        'src/ace.js',
        // Required for autocompletion.
        'src/ext-language_tools.js',
      ),
    ),
  );
  return $libraries;
}