You are here

function fontawesome_libraries_info in Font Awesome Icons 7

Same name and namespace in other branches
  1. 7.3 fontawesome.module \fontawesome_libraries_info()
  2. 7.2 fontawesome.module \fontawesome_libraries_info()

Implements hook_libraries_info().

File

./fontawesome.module, line 31
fontawesome.module Drupal integration with Font Awesome, the iconic font for use with Bootstrap.

Code

function fontawesome_libraries_info() {
  $libraries[FONTAWESOME_LIBRARY] = array(
    'name' => FONTAWESOME_NAME,
    'vendor url' => FONTAWESOME_URL,
    'download url' => FONTAWESOME_DOWNLOAD_URL,
    'version arguments' => array(
      'file' => 'css/font-awesome.css',
      'pattern' => '/((?:\\d+\\.?){2,3})/',
      'lines' => 10,
      'cols' => 14,
    ),
    'files' => array(
      'css' => array(
        'css/font-awesome.css',
      ),
    ),
  );
  return $libraries;
}