You are here

function jqp_add_css in jQuery Plugin Handler (JQP) 6

Add a shared CSS file from the plugins directory

Parameters

$file_name: the name of the file to add

...additional arguments to pass to drupal_add_css:

File

./jqp.module, line 36

Code

function jqp_add_css() {
  $args = func_get_args();
  $file_name = array_shift($args);
  $files = jqp_scan_dir();
  if ($files[$file_name]) {
    array_unshift($args, $files[$file_name]->filename);
    call_user_func_array('drupal_add_css', $args);
  }
  else {
    return FALSE;
  }
}