function realname_schema in Real Name 6
Same name and namespace in other branches
- 8 realname.install \realname_schema()
- 7 realname.install \realname_schema()
- 2.x realname.install \realname_schema()
Implementation of hook_schema().
File
- ./
realname.install, line 15 - Handles installation and updates for the RealName module.
Code
function realname_schema() {
$schema['realname'] = array(
'module' => 'RealName',
'description' => 'Computed RealNames to reduce overhead.',
'fields' => array(
'uid' => array(
'description' => 'User ID, links to User table.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'realname' => array(
'description' => 'Saved computed RealName.',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
),
'primary key' => array(
'uid',
),
'indexes' => array(
'realname' => array(
'realname',
),
),
);
return $schema;
}