You are here

realname.install in Real Name 5

Handles installation and updates for the RealName module.

@copyright Copyright (c) 2007-2008 Nancy Wichmann. All rights reserved.

File

realname.install
View source
<?php

/**
 * @file
 *   Handles installation and updates for the RealName module.
 *
 * @copyright Copyright (c) 2007-2008 Nancy Wichmann.  All rights reserved.
 */

//********************************************************************

//* Drupal Hooks

//********************************************************************

/**
 * Implementation of hook_enable().
 */
function realname_enable() {
  drupal_set_message(t('The RealName module has been enabled. You may wish to proceed to <a href="!url">the settings page</a>.', array(
    '!url' => url('admin/user/realname'),
  )));
}

/**
 * Implementation of hook_uninstall().
 */
function realname_uninstall() {
  variable_del('realname_pattern');
  variable_del('realname_fields');
  variable_del('realname_theme');
  variable_del('realname_max_username');
  variable_del('realname_nodeapi');
  variable_del('realname_notver');
  variable_del('realname_nofollow');
  variable_del('realname_homepage');
}

Functions

Namesort descending Description
realname_enable Implementation of hook_enable().
realname_uninstall Implementation of hook_uninstall().