function entity_translation_hierarchy_install in Language Hierarchy 7
Implements hook_install().
File
- modules/
entity_translation_hierarchy/ entity_translation_hierarchy.install, line 38
Code
function entity_translation_hierarchy_install() {
db_add_field('entity_translation', 'blocking', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Flag to mark the translation as blocking.',
));
db_add_field('entity_translation_revision', 'blocking', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Flag to mark the translation as blocking.',
));
// entity_translation_hierarchy_form_alter() needs to run after entity_translation_form_alter().
db_update('system')
->fields(array(
'weight' => 12,
))
->condition('name', 'entity_translation_hierarchy')
->execute();
}