You are here

function token_library in Token 7

Implements hook_library().

File

./token.module, line 195
Enhances the token API in core: adds a browseable UI, missing tokens, etc.

Code

function token_library() {

  // jQuery treeTable plugin.
  $libraries['treeTable'] = array(
    'title' => 'jQuery treeTable',
    'website' => 'http://plugins.jquery.com/project/treetable',
    'version' => '2.3.0',
    'js' => array(
      drupal_get_path('module', 'token') . '/jquery.treeTable.js' => array(),
    ),
    'css' => array(
      drupal_get_path('module', 'token') . '/jquery.treeTable.css' => array(),
    ),
  );
  $libraries['dialog'] = array(
    'title' => 'Token dialog',
    'version' => '1.0',
    'js' => array(
      drupal_get_path('module', 'token') . '/token.js' => array(),
    ),
    'dependencies' => array(
      array(
        'system',
        'ui.dialog',
      ),
    ),
  );
  return $libraries;
}