You are here

function field_group_field_attach_rename_bundle in Field Group 7

Same name and namespace in other branches
  1. 7.2 field_group.module \field_group_field_attach_rename_bundle()

Implements hook_field_attach_rename_bundle().

File

./field_group.module, line 1432
Fieldgroup module.

Code

function field_group_field_attach_rename_bundle($entity_type, $bundle_old, $bundle_new) {
  db_query('UPDATE {field_group} SET bundle = :bundle WHERE bundle = :old_bundle AND entity_type = :entity_type', array(
    ':bundle' => $bundle_new,
    ':old_bundle' => $bundle_old,
    ':entity_type' => $entity_type,
  ));
}