function autoassignrole_schema in Auto Assign Role 7.2
Same name and namespace in other branches
- 6.2 autoassignrole.install \autoassignrole_schema()
- 6 autoassignrole.install \autoassignrole_schema()
- 7 autoassignrole.install \autoassignrole_schema()
Implementation of hook_schema().
File
- ./
autoassignrole.install, line 20 - Installation related functionality for the auto assign role module.
Code
function autoassignrole_schema() {
$schema['autoassignrole_page'] = array(
'description' => 'Stores autoassignrole page information',
'fields' => array(
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'The unique machine name of this page.',
'object default' => '',
),
'roles' => array(
'type' => 'text',
'not null' => FALSE,
'description' => 'The roles for this page',
'serialize' => TRUE,
'object default' => array(),
),
'path' => array(
'type' => 'text',
'not null' => TRUE,
'description' => 'The path for this page',
'object default' => '',
),
'menu' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'The default parent menu for this menu item',
'object default' => '',
),
'title' => array(
'type' => 'text',
'not null' => TRUE,
'description' => 'The description for this page',
'object default' => '',
),
'display' => array(
'type' => 'int',
'not null' => TRUE,
'description' => 'The display type for this page',
'object default' => '',
),
),
'primary key' => array(
'name',
),
'export' => array(
'key' => 'name',
'key name' => 'Machine name',
'primary key' => 'name',
'identifier' => 'autoassignrole',
'default hook' => 'autoassignrole_page_default',
'api' => array(
'owner' => 'autoassignrole',
'api' => 'autoassignrole',
'minimum_version' => 1,
'current_version' => 1,
),
),
);
return $schema;
}