function views_add_css in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 8.3 views.module \views_add_css()
- 6.3 views.module \views_add_css()
- 6.2 views.module \views_add_css()
Include views .css files.
File
- ./
views.module, line 1284 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_add_css($file) {
// We set preprocess to FALSE because we are adding the files conditionally,
// and we don't want to generate duplicate cache files.
// @todo at some point investigate adding some files unconditionally and
// allowing preprocess.
drupal_add_css(drupal_get_path('module', 'views') . "/css/{$file}.css", array(
'preprocess' => FALSE,
));
}