function less_libraries_info in Less CSS Preprocessor 7.3
Same name and namespace in other branches
- 8 includes/less.libraries.inc \less_libraries_info()
- 7.4 includes/less.libraries.inc \less_libraries_info()
Implements hook_libraries_info().
File
- ./
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',
),
),
'integration files' => array(
'less' => array(
'php' => array(
'engines/less.lessphp.inc',
),
),
),
);
_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',
),
),
'integration files' => array(
'less' => array(
'php' => array(
'engines/less.less_php.inc',
),
),
),
'versions' => array(
'1.7.0' => array(),
),
);
_less_less_php_locate($libraries['less.php']);
/**
* Mainline 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'),
'version callback' => '_less_lessjs_version',
'files' => array(
'php' => array(
'class.lessjs.inc',
),
),
'integration files' => array(
'less' => array(
'php' => array(
'engines/less.less_js.inc',
),
),
),
'versions' => array(
'1.5.0' => array(),
),
);
return $libraries;
}