You are here

token_field.install in Token Field 6

Same filename and directory in other branches
  1. 7 token_field.install

The token_field.install file makes sure the field are installed, uninstalled, disabled and enabled correctly.

File

token_field.install
View source
<?php

/**
 * @file
 * The token_field.install file makes sure the field are installed, uninstalled,
 * disabled and enabled correctly.
 */

/**
 * Implementation of hook_install().
 */
function token_field_install() {
  drupal_load('module', 'content');
  content_notify('install', 'token_field');
}

/**
 * Implementation of hook_uninstall().
 */
function token_field_uninstall() {
  drupal_load('module', 'content');
  content_notify('uninstall', 'token_field');
}

/**
 * Implementation of hook_enable().
 */
function token_field_enable() {
  drupal_load('module', 'content');
  content_notify('enable', 'token_field');
}

/**
 * Implementation of hook_disable().
 */
function token_field_disable() {
  drupal_load('module', 'content');
  content_notify('disable', 'token_field');
}

Functions

Namesort descending Description
token_field_disable Implementation of hook_disable().
token_field_enable Implementation of hook_enable().
token_field_install Implementation of hook_install().
token_field_uninstall Implementation of hook_uninstall().