You are here

function oa_layouts_strongarm_alter in Open Atrium Core 7.2

Implements hook_strongarm_alter().

File

modules/oa_layouts/oa_layouts.module, line 21

Code

function oa_layouts_strongarm_alter(&$data) {
  if (isset($data['variable_realm_list_og'])) {

    // The assigned to settings.
    if (!in_array('oa_layouts_minipanel_header', $data['variable_realm_list_og']->value)) {
      $data['variable_realm_list_og']->value[] = 'oa_layouts_minipanel_header';
    }
    if (!in_array('oa_layouts_minipanel_footer', $data['variable_realm_list_og']->value)) {
      $data['variable_realm_list_og']->value[] = 'oa_layouts_minipanel_footer';
    }
    if (!in_array('oa_layouts_layout_name', $data['variable_realm_list_og']->value)) {
      $data['variable_realm_list_og']->value[] = 'oa_layouts_layout_name';
    }
  }
}