You are here

function webform_library in Webform 7.4

Same name and namespace in other branches
  1. 7.3 webform.module \webform_library()

Implements hook_library().

File

./webform.module, line 1028
This module provides a simple way to create forms and questionnaires.

Code

function webform_library() {
  $module_path = drupal_get_path('module', 'webform');

  // Webform administration.
  $libraries['admin'] = array(
    'title' => 'Webform: Administration',
    'website' => 'http://drupal.org/project/webform',
    'version' => '1.0',
    'js' => array(
      $module_path . '/js/webform-admin.js' => array(
        'group' => JS_DEFAULT,
      ),
    ),
    'css' => array(
      $module_path . '/css/webform-admin.css' => array(
        'group' => CSS_DEFAULT,
        'weight' => 1,
      ),
    ),
  );
  return $libraries;
}