You are here

function contextual_library in Drupal 7

Implements hook_library().

File

modules/contextual/contextual.module, line 41
Adds contextual links to perform actions related to elements on a page.

Code

function contextual_library() {
  $path = drupal_get_path('module', 'contextual');
  $libraries['contextual-links'] = array(
    'title' => 'Contextual links',
    'website' => 'http://drupal.org/node/473268',
    'version' => '1.0',
    'js' => array(
      $path . '/contextual.js' => array(),
    ),
    'css' => array(
      $path . '/contextual.css' => array(),
    ),
  );
  return $libraries;
}