You are here

function seo_checker_preprocess_seo_slider in SEO Compliance Checker 6

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

Implementation of template_preprocess().

File

inc/seo_checker.theme.inc, line 51
Contains the functions used to theme the outputs of this module.

Code

function seo_checker_preprocess_seo_slider(&$args) {
  if (module_exists('jquery_ui')) {
    switch ($args['element']['#slider_type']) {
      case 'at_least':
        $args['template_files'][] = 'slider-atleast';
        break;
      case 'range':
        $args['template_files'][] = 'slider-range';
        break;
    }
  }
  else {
    $args['template_files'][] = 'slider-nojquery';
  }
}