function defaultconfig_optional_table_original in Default config 7
Get the original table structure.
2 calls to defaultconfig_optional_table_original()
- defaultconfig_schema in ./
defaultconfig.install - Implements hook_schema().
- defaultconfig_update_7101 in ./
defaultconfig.install - Make sure the schema is installed.
File
- ./
defaultconfig.install, line 26 - Installation-related things for defaultconfig.
Code
function defaultconfig_optional_table_original() {
return array(
'description' => 'Table containing what optionals should be enabled.',
'export' => array(
'api' => array(
'owner' => 'defaultconfig',
'api' => 'defaultconfig_optionals_settings',
'minimum_version' => 1,
'current_version' => 1,
),
'key' => 'name',
'key name' => 'Name',
'primary key' => 'oid',
'identifier' => 'preset',
'default hook' => 'defaultconfig_optionals_settings',
'load callback' => 'defaultconfig_optional_load',
),
'fields' => array(
'oid' => array(
'description' => 'Serial id for this preset. Only used for internal lookups.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'no export' => TRUE,
),
'name' => array(
'description' => 'Machine-readable name for the exportable to be controlled.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'status' => array(
'description' => 'Indicates if this exporatble should be on or off.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'oid',
'name',
),
);
}