function less_libraries_info in Less CSS Preprocessor 7.4
Same name and namespace in other branches
- 8 includes/less.libraries.inc \less_libraries_info()
- 7.3 less.libraries.inc \less_libraries_info()
Implements hook_libraries_info().
File
- includes/
less.libraries.inc, line 11 - Contains Libraries API integration.
Code
function less_libraries_info() {
$libraries = array();
/**
* Legacy leafo/lessphp library.
*/
$libraries['lessphp'] = array(
'name' => 'lessphp (Not recommended)',
'vendor url' => 'http://leafo.net/lessphp/',
'download url' => 'http://leafo.net/lessphp/',
'version arguments' => array(
'file' => 'lessc.inc.php',
'pattern' => '/VERSION\\s*=\\s*["\']v?([\\d\\.]+)/',
'lines' => 50,
),
'files' => array(
'php' => array(
'lessc.inc.php',
),
),
);
_less_lessphp_locate($libraries['lessphp']);
/**
* Newer oyejorge/less.php library. Closer to canonical spec from lesscss.org.
*/
$libraries['less.php'] = array(
'name' => 'less.php',
'vendor url' => 'http://lessphp.gpeasy.com/',
'download url' => 'http://lessphp.gpeasy.com/#integration-with-other-projects',
'version arguments' => array(
'file' => 'Version.php',
'pattern' => '/version\\s*=\\s*["\']([\\d\\.]+)/',
'lines' => 20,
),
'files' => array(
'php' => array(
'Less.php',
),
),
'versions' => array(
'1.7.0' => array(),
),
);
_less_less_php_locate($libraries['less.php']);
/**
* Canonical version of LESS language.
*/
$libraries['less.js'] = array(
'name' => 'less.js',
'vendor url' => 'http://lesscss.org/',
'download url' => 'http://lesscss.org/usage/#using-less-environments',
'library path' => drupal_get_path('module', 'less') . '/classes',
'version callback' => array(
'Lessjs',
'version',
),
/**
* Integer indexed 'version arguments' array causes 'version callback' to be
* run through call_user_func_array().
*
* @see call_user_func_array()
*/
'version arguments' => array(
0 => 'not used',
),
'files' => array(
'php' => array(
'class.lessjs.inc',
),
),
'versions' => array(
'1.5.0' => array(),
),
);
/**
* Autoprefixer
*/
$libraries['lessautoprefixer'] = array(
'name' => 'Autoprefixer',
'vendor url' => 'https://github.com/ai/autoprefixer',
'download url' => 'https://github.com/ai/autoprefixer/releases',
'library path' => drupal_get_path('module', 'less') . '/classes',
'version callback' => array(
'LessAutoprefixer',
'version',
),
/**
* Integer indexed 'version arguments' array causes 'version callback' to be
* run through call_user_func_array().
*
* @see call_user_func_array()
*/
'version arguments' => array(
0 => 'not used',
),
'files' => array(
'php' => array(
'class.lessautoprefixer.inc',
),
),
'versions' => array(
'1.1' => array(),
),
);
return $libraries;
}