You are here

function rabbit_hole_update_7003 in Rabbit Hole 7.2

Set the new override setting to TRUE for existing bundles.

File

./rabbit_hole.install, line 109
Install, update and uninstall functions for Rabbit Hole.

Code

function rabbit_hole_update_7003() {
  $modules = module_invoke_all('rabbit_hole');
  foreach ($modules as $module => $info) {
    $entity_info = entity_get_info($info['entity type']);
    foreach ($entity_info['bundles'] as $bundle => $bundle_info) {
      variable_set('rh_' . $info['entity type'] . '_override_' . $bundle, TRUE);
    }
  }
}