function fp_add_css

7.x misc.inc fp_add_css($path_to_css)
6.x misc.inc fp_add_css($path_to_css)
4.x misc.inc fp_add_css($path_to_css)
5.x misc.inc fp_add_css($path_to_css)

Add an extra CSS file to the page with this function. Ex: fp_add_css(fp_get_module_path("admin") . '/css/admin.css');

Parameters

String $path_to_css:

42 calls to fp_add_css()
admin_display_courses in modules/admin/admin.courses.inc
This function displays all of our courses for us to edit.
admin_display_degrees in modules/admin/admin.degrees.inc
admin_display_edit_degree in modules/admin/admin.degrees.inc
This screen displays the form which allows the user to actually edit a degree.
admin_display_groups in modules/admin/admin.groups.inc
This function will display a list of all our groups.
admin_display_groups_popup_edit_definition in modules/admin/admin.groups.inc

... See full list

File

includes/misc.inc, line 1085
This file contains misc functions for FlightPath

Code

function fp_add_css($path_to_css) {

  // Init if needed
  if (!isset($GLOBALS ['fp_extra_css'])) {
    $GLOBALS ['fp_extra_css'] = array();
  }


  if (!in_array($path_to_css, $GLOBALS ['fp_extra_css'])) {
    $GLOBALS ["fp_extra_css"][] = $path_to_css;
  }
}