function name_schema in Name Field 7
Same name and namespace in other branches
- 6 name.install \name_schema()
Implements hook_schema().
File
- ./
name.install, line 37 - Standard installation functions for name.
Code
function name_schema() {
$schema = array();
$schema['name_custom_format'] = array(
'fields' => array(
'ncfid' => array(
'description' => 'The primary identifier for a custom format.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'name' => array(
'description' => 'The name to identify the custom format to a user.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'machine_name' => array(
'description' => 'The machine name to identify the custom format to the system.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'format' => array(
'description' => 'The format string to apply to names.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'primary key' => array(
'ncfid',
),
);
return $schema;
}