function smart_paging_schema in Smart Paging 7
Same name and namespace in other branches
- 7.2 smart_paging.install \smart_paging_schema()
Implements hook_schema().
File
- ./
smart_paging.install, line 11 - Smart paging installation callback.
Code
function smart_paging_schema() {
$schema['smart_paging'] = array(
'description' => 'Entity content level customized settings of Smart Paging.',
'fields' => array(
'entity_id' => array(
'type' => 'int',
'not null' => TRUE,
'description' => 'The entity type ID this configuration is attached to.',
),
'entity_type' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'description' => 'An entity type refer to table {field_config_entity_type}.type.',
),
'configuration' => array(
'type' => 'blob',
'not null' => FALSE,
'description' => 'Customized settings of Smart Paging (serialized).',
),
),
'primary key' => array(
'entity_id',
'entity_type',
),
);
return $schema;
}