You are here

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

Implements hook_variable_info_alter().

Group all rooms-related variables under a single 'rooms' group. This simplifies access control and the Rooms Terminology form.

File

./rooms_ui.module, line 111
Interface support to the Rooms family of modules.

Code

function rooms_ui_variable_info_alter(&$info) {
  foreach ($info as $name => $variable) {
    if (0 === strpos($name, 'rooms_')) {
      $info[$name]['group'] = 'rooms';
    }
  }
}