function disable_field_schema in Disable Field 7
Implements hook_schema().
File
- ./
disable_field.install, line 11 - Install and uninstall functions for the Disable Textfield module.
Code
function disable_field_schema() {
$schema['disable_field'] = array(
'description' => 'The base table for Disable fields.',
'fields' => array(
'entity_type' => array(
'description' => 'Entity Type of Field.',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
'bundle' => array(
'description' => 'Bundle type of Field.',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
'page' => array(
'description' => 'Disable in.',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
'disable_page' => array(
'description' => 'Disabled',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
'field_name' => array(
'description' => 'Field to disable/enable.',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
'roles' => array(
'description' => 'Field to disable/enable for Roles.',
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
),
'status' => array(
'description' => 'Status of Field.',
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
),
);
return $schema;
}