home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (globalredirect.install)

This example Drupal source code file (globalredirect.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

348120, array, deslash, function, if, issue, name, not, php, query, ret, to, true, your

The globalredirect.install Drupal example source code

// $Id: globalredirect.install,v 2008/12/22 10:34:32 njt1982 Exp $

 * @file
 * GlobalRedirect Install file - currently only used to clear out variables upon uninstall.
function globalredirect_uninstall() {

function globalredirect_update_6100() {
  $deslash = variable_get('globalredirect_deslah', NULL);
  $ret = array();

  if (is_null($deslash)) {
    $ret[] = array('success' => TRUE, 'query' => 'There was no "deslah" option to fix... Nothingto do. Issue #348120 does not apply.');
  else {
    variable_set('globalredirect_deslash', $deslash);

    $ret[] = array('success' => TRUE, 'query' => 'Issue #348120 applies. Copied setting over to correct name. Your deslash settings should work now.');

  return $ret;

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal globalredirect.install source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.