You are here

function taxonomy_display_update_7003 in Taxonomy display 7

Implements hook_update_N().

File

./taxonomy_display.install, line 157
Install, update and uninstall functions for the taxonomy display module.

Code

function taxonomy_display_update_7003() {

  // Add fields on taxonomy_display records in the storage system to add support
  // for our new breadcrumb plugin type.
  // See http://drupal.org/node/1247802
  // Add field with a default value for the core breadcrumb type.
  db_add_field('taxonomy_display', 'breadcrumb_display_plugin', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => 'TaxonomyDisplayBreadcrumbDisplayHandlerCore',
    'description' => 'The plugin used to display the breadcrumb.',
  ));

  // Remove the default value now that existing records have been updated with
  // the core value.
  db_field_set_default('taxonomy_display', 'breadcrumb_display_plugin', '');
  db_add_field('taxonomy_display', 'breadcrumb_display_options', array(
    'type' => 'blob',
    'not null' => FALSE,
    'size' => 'big',
    'serialize' => TRUE,
    'description' => 'The plugin data for the breadcrumb display.',
  ));
}