function gathercontent_schema_alter in GatherContent 7.3
Implements hook_schema_alter().
Adding extra properties to node and file_managed.
@inheritdoc
File
- ./
gathercontent.install, line 271
Code
function gathercontent_schema_alter(&$schema) {
$schema['node']['fields']['gathercontent_mapping_id'] = array(
'definition' => 'The ID of GatherContent mapping.',
'type' => 'int',
'unsigned' => TRUE,
);
$schema['node']['fields']['gathercontent_id'] = array(
'definition' => 'The ID of content in GatherContent.',
'type' => 'int',
'unsigned' => TRUE,
);
$schema['node']['fields']['gathercontent_import_status'] = array(
'definition' => 'The ID of content in GatherContent.',
'type' => 'text',
);
$schema['file_managed']['fields']['gathercontent_id'] = array(
'definition' => 'The ID of file in GatherContent.',
'type' => 'int',
'unsigned' => TRUE,
);
if (isset($schema['gathercontent_mapping']['fields']['updated_gathercontent'])) {
unset($schema['gathercontent_mapping']['fields']['updated_gathercontent']);
}
}