You are here

machine_name.install in Machine name 7

Same filename and directory in other branches
  1. 7.2 machine_name.install

Install, update and uninstall functions for the machine_name module.

File

machine_name.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the machine_name module.
 */

/**
 * Implements hook_field_schema().
 */
function machine_name_field_schema($field) {
  $schema['columns'] = array(
    'value' => array(
      'type' => 'varchar',
      'length' => 128,
      'not null' => TRUE,
      'default' => '',
    ),
  );
  $schema['indexes'] = array(
    'value' => array(
      'value',
    ),
  );
  return $schema;
}

Functions