You are here

function rooms_unit_module_implements_alter in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Implements hook_module_implements_alter()

This ensures that this hook is called after entity translation's alter hook.

File

modules/rooms_unit/rooms_unit.module, line 658
Manage units - Units are things that can be booked on a nightly basis (e.g. rooms - but also villas bungalows, etc).

Code

function rooms_unit_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'form_alter' && isset($implementations['rooms_unit'])) {
    $group = $implementations['rooms_unit'];
    unset($implementations['rooms_unit']);
    $implementations['rooms_unit'] = $group;
  }
}