You are here

function icon_library in Icon API 7

Same name and namespace in other branches
  1. 8 icon.module \icon_library()

Implements hook_library().

File

./icon.module, line 39
icon.module Provides icon integration with menu items.

Code

function icon_library() {
  $libaries_path = drupal_get_path('module', 'icon') . '/libraries';
  $libraries['icon_selector'] = array(
    'title' => 'Icon Selector',
    'website' => 'http://drupal.org/project/icon',
    'version' => '1.0.0',
    'css' => array(
      $libaries_path . '/icon_selector/css/icon_selector.css' => array(),
    ),
    'js' => array(
      $libaries_path . '/icon_selector/js/icon_selector.js' => array(),
      0 => array(
        'type' => 'setting',
        'data' => array(
          'icon_selector' => array(
            'bundles' => array_keys(icon_bundles()),
          ),
        ),
      ),
    ),
  );
  return $libraries;
}