You are here

function htmlpurifier_libraries_info in HTML Purifier 7.2

Implements hook_libraries_info().

Return value

An associative array whose keys are internal names of libraries and whose values are describing each library. Each key is the directory name below the 'libraries' directory, in which the library may be found.

File

./htmlpurifier.module, line 77
Implements HTML Purifier as a Drupal filter.

Code

function htmlpurifier_libraries_info() {
  $libraries['htmlpurifier'] = array(
    'name' => 'HTML Purifier library',
    'vendor url' => 'http://htmlpurifier.org/',
    'download url' => 'http://htmlpurifier.org/download',
    'version arguments' => array(
      'file' => 'VERSION',
      'pattern' => '@([0-9\\.]+)@',
      'lines' => 1,
      'cols' => 8,
    ),
    'version callback' => 'htmlpurifier_libraries_get_version',
    'versions' => array(
      '4.4.0' => array(
        'files' => array(
          'php' => array(
            'library/HTMLPurifier.auto.php',
          ),
        ),
      ),
    ),
    'callbacks' => array(
      'post-load' => array(
        'htmlpurifier_libraries_postload_callback',
      ),
    ),
  );

  // Optional library for use with ExtractStyleBlocks
  $libraries['csstidy'] = array(
    'name' => 'CSSTidy',
    'vendor url' => 'http://csstidy.sourceforge.net/',
    'download url' => 'http://csstidy.sourceforge.net/download.php',
    'version arguments' => array(
      'file' => 'class.csstidy.php',
      'pattern' => "/'([0-9.]+)'/",
      'lines' => 120,
      'cols' => 200,
    ),
    'versions' => array(
      '1.3' => array(
        'files' => array(
          'php' => array(
            'class.csstidy.php',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}