/[drupal]/contributions/modules/search404/search404.install
ViewVC logotype

Contents of /contributions/modules/search404/search404.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Tue Mar 4 12:14:30 2008 UTC (20 months, 3 weeks ago) by zyxware
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, DRUPAL-6--1-5, DRUPAL-6--1-6, DRUPAL-6--1-7, DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Branch point for: DRUPAL-6--1, DRUPAL-7--1
Changes since 1.2: +8 -8 lines
File MIME type: text/x-php
Modified to work with Drupal 6.x
1 <?php
2 //* $Id: search404.install $
3 /**
4 * Setup Search 404 by changing Drupal's 404-page to search404.
5 */
6 function search404_install() {
7 variable_set('site_404', 'search404');
8 }
9
10 function search404_uninstall() {
11 if (variable_get('site_404', '') == 'search404') {
12 variable_del('site_404');
13 }
14 variable_del('search404_first');
15 variable_del('search404_jump');
16 variable_del('search404_use_or');
17 variable_del('search404_ignore');
18 variable_del('search404_ignore_query');
19 variable_del('search404_ignore_extensions');
20 variable_del('search404_use_search_engine');
21 }

  ViewVC Help
Powered by ViewVC 1.1.2