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

Diff of /contributions/modules/robotstxt/robotstxt.install

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

revision 1.1.4.4, Sat Jan 3 17:20:34 2009 UTC revision 1.1.4.5, Sat Mar 7 10:49:20 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: robotstxt.install,v 1.1.4.3 2007/10/20 00:10:30 hass Exp $ */  /* $Id: robotstxt.install,v 1.1.4.4 2009/01/03 17:20:34 hass Exp $ */
3    
4  /**  /**
5   * Implementation of hook_install().   * Implementation of hook_install().
6   */   */
7  function robotstxt_install() {  function robotstxt_install() {
8    if (file_exists('./robots.txt')) {    if (file_exists('./robots.txt')) {
9      variable_set('robotstxt', check_plain(file_get_contents('./robots.txt')));      variable_set('robotstxt', file_get_contents('./robots.txt'));
10    }    }
11    elseif (file_exists(drupal_get_path('module', 'robotstxt') .'/robots.txt')) {    elseif (file_exists(drupal_get_path('module', 'robotstxt') .'/robots.txt')) {
12      variable_set('robotstxt', check_plain(file_get_contents(drupal_get_path('module', 'robotstxt') .'/robots.txt')));      variable_set('robotstxt', file_get_contents(drupal_get_path('module', 'robotstxt') .'/robots.txt'));
13    }    }
14  }  }
15    

Legend:
Removed from v.1.1.4.4  
changed lines
  Added in v.1.1.4.5

  ViewVC Help
Powered by ViewVC 1.1.2