function css3pie_css3pie in css3pie 6
Same name and namespace in other branches
- 7.2 css3pie.module \css3pie_css3pie()
Implements own hook_css3pie() returns a array with selectors that will be added to css3pie css file on next cache clear
Return value
<array> multiarray with selectors use modulname as key for namespace
File
- ./
css3pie.module, line 59 - 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_css3pie() {
$css3pie_selectors = variable_get('css3pie_css_selectors', '');
$css3pie_namespace = 'css3pie';
if ($css3pie_selectors) {
$css3pie_selectors = explode("\n", $css3pie_selectors);
$css3pie_selectors = array_filter(array_map('trim', $css3pie_selectors));
return array(
$css3pie_namespace => $css3pie_selectors,
);
}
}