You are here

quicklink.install in Quicklink 7

Same filename and directory in other branches
  1. 8 quicklink.install
  2. 2.0.x quicklink.install

File

quicklink.install
View source
<?php

/**
 * Converts variables to use 'quicklink_' namespace.
 */
function quicklink_update_7001() {
  global $conf;
  $variables = array(
    'ignore_admin_paths',
    'ignore_ajax_links',
    'ignore_hashes',
    'ignore_file_ext',
    'url_patterns_to_ignore',
    'selector',
    'allowed_domains',
    'prefetch_only_paths',
    'no_load_when_authenticated',
    'no_load_when_session',
    'no_load_content_types',
    'load_polyfill',
    'enable_debug_mode',
  );
  foreach ($variables as $variable) {
    if (isset($conf[$variable])) {
      variable_set('quicklink_' . $variable, $conf[$variable]);
      variable_del($variable);
    }
  }
}

Functions

Namesort descending Description
quicklink_update_7001 Converts variables to use 'quicklink_' namespace.