You are here

function taxonomy_guid_schema_alter in Taxonomy import/export via XML 6.2

Ensure the schema cache (used to define which attributes get serialized) knows that it should save this new field also

File

taxonomy_guid/taxonomy_guid.install, line 33
(Un)Install/Update hooks for taxonomy_guid.

Code

function taxonomy_guid_schema_alter(&$schema) {

  // Add guid to existing schema.
  $schema['term_data']['fields']['guid'] = array(
    'description' => 'Tag terms with GUIDs, for portability between systems',
    'type' => 'varchar',
    'length' => 256,
    'default' => '',
  );
}