You are here

function search_by_page_update_7000 in Search by Page 7

Activate Search by Page as an active Search module, if upgrading from 6.x.

File

./search_by_page.install, line 243
Install hooks for search_by_page module

Code

function search_by_page_update_7000() {
  $active = variable_get('search_active_modules', array(
    'node',
    'user',
  ));
  if (!in_array('search_by_page', $active)) {
    $active[] = 'search_by_page';
    variable_set('search_active_modules', $active);
  }
}