You are here

function _seo_checker_load_slider in SEO Compliance Checker 6

Same name and namespace in other branches
  1. 6.2 inc/seo_checker.admin.inc \_seo_checker_load_slider()

The slider requires some java scripts and css to be loaded

1 call to _seo_checker_load_slider()
seo_checker_settings in inc/seo_checker.admin.inc
Builds the settings form for the SEO checker using system_settings_form()

File

inc/seo_checker.admin.inc, line 92
The functions used to configure the module over the admin interface.

Code

function _seo_checker_load_slider() {
  if (module_exists('jquery_ui')) {
    jquery_ui_add('ui.slider', 'none');
    drupal_add_js(drupal_get_path('module', 'seo_checker') . "/js/slider.js");
  }
  drupal_add_css(drupal_get_path('module', 'seo_checker') . "/css/slider.css");
}