function mobile_tools_schema in Mobile Tools 7.3
Same name and namespace in other branches
- 6 mobile_tools.install \mobile_tools_schema()
- 7.2 mobile_tools.install \mobile_tools_schema()
Implements hook_schema().
File
- ./
mobile_tools.install, line 27 - Instalation of the mobile_tools module
Code
function mobile_tools_schema() {
$schema = array();
$schema['mobile_tools_device_group'] = array(
'description' => 'Store device groups for mobile tools',
'export' => array(
'key' => 'dgid',
'identifier' => 'device_group',
'default hook' => 'default_mobile_tools_device_groups',
'api' => array(
'owner' => 'mobile_tools',
'api' => 'default_mobile_tools_device_group',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'dgid' => array(
'description' => 'The machine-readable device group name',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'title' => array(
'description' => 'The human-readable title for this device group',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'purl_modifier' => array(
'description' => 'PURL Modifier',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'theme' => array(
'description' => 'Theme',
'type' => 'varchar',
'length' => 255,
'default' => '0',
),
'themekey_id' => array(
'description' => 'ThemeKey Rule ID',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'description' => array(
'description' => 'The human-readable name of the device group',
'type' => 'text',
),
'detector' => array(
'type' => 'varchar',
'description' => 'Module responsible for device detection',
'default' => '',
'not null' => FALSE,
'length' => 255,
),
'detection_settings' => array(
'type' => 'blob',
'description' => 'Settings for enabled detection devices',
'serialize' => TRUE,
),
'weight' => array(
'type' => 'int',
'unsigned' => FALSE,
'description' => 'Weight of the device group',
'default' => 0,
'not null' => TRUE,
),
'httpheaders' => array(
'type' => 'blob',
'description' => 'HTTP Headers to include in the device group',
'serialize' => TRUE,
),
),
'primary key' => array(
'dgid',
),
);
return $schema;
}