function headerimage_schema in Header image 6
Same name and namespace in other branches
- 7 headerimage.install \headerimage_schema()
Implementation of hook_schema()
File
- ./
headerimage.install, line 6
Code
function headerimage_schema() {
$schema['headerimage'] = array(
'description' => t(''),
'fields' => array(
'nid' => array(
'description' => t(''),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'block' => array(
'description' => t(''),
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '0',
),
'weight' => array(
'description' => t(''),
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
'conditions' => array(
'description' => t(''),
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array(
'nid',
),
);
$schema['headerimage_block'] = array(
'description' => t(''),
'fields' => array(
'delta' => array(
'description' => t(''),
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'title' => array(
'description' => t(''),
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'delta',
),
);
return $schema;
}