You are here

function atom_reference_library in Scald: Media Management made easy 7

Implements hook_library().

File

modules/fields/atom_reference/atom_reference.module, line 11
Defines a new field type, allowing to directly reference Scald Atoms from a node.

Code

function atom_reference_library() {
  $path = drupal_get_path('module', 'atom_reference');
  $libraries['library'] = array(
    'title' => 'Atom reference library',
    'website' => 'http://drupal.org/project/scald',
    'version' => '1.x',
    'js' => array(
      $path . '/atom_reference.js' => array(),
      drupal_get_path('module', 'ctools') . '/js/dropbutton.js' => array(),
    ),
    'css' => array(
      $path . '/atom_reference.css' => array(),
      drupal_get_path('module', 'ctools') . '/css/dropbutton.css' => array(),
      drupal_get_path('module', 'ctools') . '/css/button.css' => array(),
    ),
  );
  return $libraries;
}