You are here

function editablefields_library in Editable Fields 7

Implements hook_library().

File

./editablefields.module, line 31
Editable fields module.

Code

function editablefields_library() {
  $path = drupal_get_path('module', 'editablefields');
  $libraries['editablefields'] = array(
    'title' => 'Editable Fields',
    'version' => '1.x',
    'js' => array(
      $path . '/editablefields.js' => array(
        'group' => JS_DEFAULT + 1,
      ),
    ),
    'css' => array(
      $path . '/editablefields.css' => array(
        'group' => CSS_DEFAULT + 1,
      ),
    ),
    'dependencies' => array(
      array(
        'system',
        'drupal.form',
      ),
      // editablefields.js contains a small override to the autocomplete code.
      // as a consequence, we need to load the autocomplete code unconditionnally.
      array(
        'system',
        'drupal.autocomplete',
      ),
    ),
  );
  return $libraries;
}