function autoassignrole_schema in Auto Assign Role 6.2
Same name and namespace in other branches
- 6 autoassignrole.install \autoassignrole_schema()
- 7.2 autoassignrole.install \autoassignrole_schema()
- 7 autoassignrole.install \autoassignrole_schema()
Implementation of hook_schema().
File
- ./
autoassignrole.install, line 44 - The autoassignrole.install file
Code
function autoassignrole_schema() {
$schema['autoassignrole'] = array(
'description' => t('Stores autoassignrole variables.'),
'fields' => array(
'arid' => array(
'type' => 'varchar',
'length' => 38,
'not null' => TRUE,
'default' => '',
'description' => t('The id for this setting.'),
),
'value' => array(
'type' => 'text',
'not null' => FALSE,
'description' => t('The value for this setting.'),
),
),
'primary key' => array(
'arid',
),
);
$schema['autoassignrole_page'] = array(
'description' => t('Stores autoassignrole page information.'),
'fields' => array(
'rid' => array(
'type' => 'int',
'not null' => TRUE,
'description' => t('The rid for this page.'),
),
'display' => array(
'type' => 'text',
'not null' => TRUE,
'description' => t('How to display the navigation to this page.'),
),
'path' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => t('The path for this page.'),
),
'menu' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => t('The default parent menu for this menu item.'),
),
'title' => array(
'type' => 'text',
'not null' => TRUE,
'description' => t('The title for this page.'),
),
'description' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
'description' => t('The description for this page.'),
),
'format' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => FALSE,
'description' => t('The filter format to use on the description.'),
),
'weight' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => FALSE,
'default' => 0,
'description' => t('The weight of this item.'),
),
'registration' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => FALSE,
'default' => 0,
'description' => t('Should this item replace the default user registration page.'),
),
),
'primary key' => array(
'rid',
),
);
return $schema;
}