You are here

responsive_tables_filter.install in Responsive Tables Filter 8

Same filename and directory in other branches
  1. 7 responsive_tables_filter.install

Responsive Tables Filter install file.

File

responsive_tables_filter.install
View source
<?php

/**
 * @file
 * Responsive Tables Filter install file.
 */

/**
 * Set initial responsive tables filter settings for existing sites.
 */
function responsive_tables_filter_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('responsive_tables_filter.settings');
  $config
    ->set('views_enabled', '0');
  $config
    ->set('views_tablesaw_mode', 'Stack Mode');
  $config
    ->save();
}

Functions

Namesort descending Description
responsive_tables_filter_update_8001 Set initial responsive tables filter settings for existing sites.