You are here

function search_by_page_install in Search by Page 7

Same name and namespace in other branches
  1. 8 search_by_page.install \search_by_page_install()
  2. 6 search_by_page.install \search_by_page_install()

Implements hook_install().

File

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

Code

function search_by_page_install() {

  // Make sure this module is enabled for Search, or no indexing will happen.
  $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);
  }
}