function rotor_schema in Rotor Banner 6
Same name and namespace in other branches
- 6.2 rotor.install \rotor_schema()
- 7 rotor.install \rotor_schema()
Implementation of hook_schema().
File
- ./
rotor.install, line 30 - Provides install and uninstall functions for rotor.
Code
function rotor_schema() {
$schema['rotor_item'] = array(
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'The node id associated.',
),
'file_path' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => 255,
'description' => 'The path of the image that will be displayed.',
),
'alt_text' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => 255,
'description' => 'The alt text for the rotor item image.',
),
'url' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => 255,
'description' => 'The url of the image that will be actived.',
),
'link_target' => array(
'type' => 'varchar',
'not null' => FALSE,
'length' => 255,
'description' => 'The target for the link.',
),
),
'primary key' => array(
'nid',
),
'description' => 'The file path for the rotor item image.',
);
return $schema;
}