<?php

function groups_common_enable() {
  // need to raise weight to override custom_search module settings
  db_update('system')
    ->fields(array('weight' => 110))
    ->condition('type', 'module')
    ->condition('name', 'groups_common')
    ->execute();
}