You are here

function responsive_tables_filter_init in Responsive Tables Filter 7

Implements hook_init().

File

./responsive_tables_filter.module, line 59
Make tables responsive, when filter is enabled for the field.

Code

function responsive_tables_filter_init() {

  // If this page is using the default theme, AND the "every page" configuration
  // setting was checked, then add tablesaw on every page. Otherwise,
  // responsive_tables_filter_preprocess_page() conditionally adds it on a
  // per-page basis.
  if (_responsive_tables_filter_is_theme_default() && variable_get(RESPONSIVE_TABLES_FILTER_EVERY_PAGE, FALSE)) {
    _responsive_tables_filter_add_js_css();
  }
}