/[drupal]/contributions/modules/stalker/stalker.module
ViewVC logotype

Diff of /contributions/modules/stalker/stalker.module

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

revision 1.2, Fri Oct 23 18:41:12 2009 UTC revision 1.3, Fri Oct 23 18:53:41 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stalker.module,v 1.1 2009/10/23 17:06:00 eaton Exp $  // $Id: stalker.module,v 1.2 2009/10/23 18:41:12 eaton Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 56  function stalker_user($op, &$edit, &$acc Line 56  function stalker_user($op, &$edit, &$acc
56   * with drupal's theme system.   * with drupal's theme system.
57   */   */
58  function stalker_theme() {  function stalker_theme() {
59    return array (    return array(
60      'stalker_user' => array (      'stalker_user' => array(
61        'arguments' => array('account' => NULL),        'arguments' => array('account' => NULL),
62      )      )
63    );    );
# Line 173  function stalker_settings_form_validate( Line 173  function stalker_settings_form_validate(
173    // to the user on the page.    // to the user on the page.
174    if (!is_numeric($form_state['values']['stalker_threshold'])) {    if (!is_numeric($form_state['values']['stalker_threshold'])) {
175      form_set_error('stalker_threshold', t('You must enter a number for the threshold.'));      form_set_error('stalker_threshold', t('You must enter a number for the threshold.'));
176    } elseif ($form_state['values']['stalker_threshold'] < 1) {    }
177      elseif ($form_state['values']['stalker_threshold'] < 1) {
178      form_set_error('stalker_threshold', t('The stalker threshold must be greater than zero.'));      form_set_error('stalker_threshold', t('The stalker threshold must be greater than zero.'));
179    }    }
180  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2