function gathercontent_install in GatherContent 8
Same name and namespace in other branches
- 8.5 gathercontent.install \gathercontent_install()
- 8.3 gathercontent.install \gathercontent_install()
- 8.4 gathercontent.install \gathercontent_install()
- 7.3 gathercontent.install \gathercontent_install()
Implements hook_install().
File
- ./
gathercontent.install, line 11 - Install and uninstall script for GatherContent module.
Code
function gathercontent_install() {
$database = \Drupal::database()
->schema();
$database
->addField('node', 'gc_mapping_id', array(
'definition' => 'The ID of GatherContent mapping.',
'type' => 'int',
'unsigned' => TRUE,
));
$database
->addField('node', 'gc_id', array(
'definition' => 'The ID of content in GatherContent.',
'type' => 'int',
'unsigned' => TRUE,
));
$database
->addField('node', 'gc_import_status', array(
'definition' => 'The ID of content in GatherContent.',
'type' => 'text',
));
$database
->addField('file_managed', 'gc_id', array(
'definition' => 'The ID of file in GatherContent.',
'type' => 'int',
'unsigned' => TRUE,
));
}