function taxonomy_guid_install in Taxonomy import/export via XML 6.2
Implementation of hook_install().
File
- taxonomy_guid/
taxonomy_guid.install, line 13 - (Un)Install/Update hooks for taxonomy_guid.
Code
function taxonomy_guid_install() {
$ret = array();
if (!db_column_exists('term_data', 'guid')) {
$term_data_schema = drupal_get_schema('term_data');
$new_column = array(
'description' => 'Tag terms with GUIDs, for portability between systems',
'type' => 'varchar',
'length' => 256,
'default' => '',
);
db_add_field($ret, 'term_data', 'guid', $new_column);
drupal_set_message("Modified term data column to support GUIDs");
}
return $ret;
}