You are here

function machine_name_field_schema in Machine name 7.2

Same name and namespace in other branches
  1. 7 machine_name.install \machine_name_field_schema()

Implements hook_field_schema().

File

./machine_name.install, line 11
Install, update and uninstall functions for the machine_name module.

Code

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;
}