Same filename and directory in other branches
  1. 7.x-1.x subpathauto.install 1 comment

Install, update, and uninstall functions for Subpathauto.

File

./subpathauto.install

View source
<?php


/**
 * @file
 * Install, update, and uninstall functions for Subpathauto.
 */

/**
 * Sets a default value for the redirect_support setting.
 */
function subpathauto_update_8001() {
    // Even though the default value is TRUE for this setting, we are setting this
    // to FALSE in order to preserve the functionality of the existing websites.
    \Drupal::configFactory()->getEditable('subpathauto.settings')
        ->set('redirect_support', FALSE)
        ->save();
}

Functions

Title Deprecated Summary
subpathauto_update_8001 Sets a default value for the redirect_support setting.