You are here

function field_group_update_7002 in Field Group 7

Same name and namespace in other branches
  1. 7.2 field_group.install \field_group_update_7002()

Update hook to clear cache for new changes to take effect.

File

./field_group.install, line 240
Fieldgroup module install file.

Code

function field_group_update_7002() {
  module_load_include('module', 'field_group');

  // This hook is called to satify people with older version of field_group.
  // This will recreate all identifiers for the field_groups known in database.
  // At the moment, we only trigger field_groups that are stored in the database, where
  // we should maybe get all field_groups as ctools has registered them.
  // See http://drupal.org/node/1169146.
  // See http://drupal.org/node/1018550.
  _field_group_recreate_identifiers();

  // Clear drupal and static cache.
  field_group_info_groups(NULL, NULL, NULL, TRUE);
}