You are here

show_email.install in Show Email Address 7

Install, update and uninstall functions for show email module.

File

show_email.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for show email module.
 */

/**
 * Implements hook_install().
 */
function show_email_install() {

  // This will make UID=1 hidden by default.
  variable_set('show_email_settings_hide_uid_one', 1);
}

/**
 * Implements hook_install().
 */
function show_email_uninstall() {

  // Delete all vars in Show Email module.
  $sql = 'SELECT name FROM {variable} WHERE name LIKE :name';
  $result = db_query($sql, array(
    ':name' => db_like('show_email_') . '%',
  ));
  foreach ($result as $var) {
    variable_del($var->name);
  }
}

Functions

Namesort descending Description
show_email_install Implements hook_install().
show_email_uninstall Implements hook_install().