function css3pie_library in css3pie 7.2
Implementation of hook_library() add the css3pie files as library so any module maintaner can use hook_library_alter() but we can´t use drupal_add_library on the htc file because we use it in the css file
File
- ./
css3pie.module, line 133 - css3pie.module a very simple Drupal module to implement the css3pie.com javascript to your drupal and make the css selectors configurable over ui. This module creates a real css file on drupal files folder and add them via drupal_add_css.
Code
function css3pie_library() {
if (file_exists(libraries_get_path('PIE') . '/PIE.htc')) {
$libraries = array();
// css3pie htc file...
$libraries['css3pie_htc'] = array(
'title' => 'CSS3PIE',
'website' => 'http://www.css3pie.com',
'version' => '1.0beta4',
'js' => array(
libraries_get_path('PIE') . '/PIE.htc' => array(),
),
);
// css3pie php wrapper for htc (outputs the right http header)
$libraries['css3pie_php'] = array(
'title' => 'CSS3PIE',
'website' => 'http://www.css3pie.com',
'version' => '1.0beta4',
'js' => array(
libraries_get_path('PIE') . '/PIE.php' => array(),
),
);
// css3pie javascript edition
$libraries['css3pie_js'] = array(
'title' => 'CSS3PIE',
'website' => 'http://www.css3pie.com',
'version' => '1.0beta4',
'js' => array(
libraries_get_path('PIE') . '/PIE.js' => array(),
),
);
return $libraries;
}
}