| 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 |
| 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 |
); |
); |
| 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 |
} |
} |