function publication_date_schema in Publication Date 6
Same name and namespace in other branches
- 7.2 publication_date.install \publication_date_schema()
- 7 publication_date.install \publication_date_schema()
Implementation of hook_schema().
File
- ./
publication_date.install, line 15 - @author Clever Age @author Emmanuelle Gouleau @author Tristan Marly
Code
function publication_date_schema() {
$schema['publication_date'] = array(
'description' => 'Keep the publication timestamp for each node.',
'fields' => array(
'nid' => array(
'description' => 'The {node}.nid of the node.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'published_at' => array(
'description' => 'The timestamp of the node publication.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'published_at' => array(
'published_at',
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}