function block_aria_landmark_roles_schema in Block ARIA Landmark Roles 6
Same name and namespace in other branches
- 7 block_aria_landmark_roles.install \block_aria_landmark_roles_schema()
Implementation of hook_schema().
Creates a new database table when the module is installed.
File
- ./
block_aria_landmark_roles.install, line 14 - Install, update, and uninstall functions for the Blocks ARIA Landmark Roles module.
Code
function block_aria_landmark_roles_schema() {
$schema['block_aria_landmark_roles'] = array(
'description' => 'Stores ARIA landmark roles assigned to blocks',
'fields' => array(
'module' => array(
'description' => 'The name of the module that generates the block',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'delta' => array(
'description' => 'The delta value of the block',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'role' => array(
'description' => 'The assigned ARIA landmark role',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
),
);
return $schema;
}