This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Implements hook_user(). | |
| * Does advanced email validation. | |
| */ | |
| function revolven_user($op, &$edit, &$account, $category = NULL) { | |
| if($op == "validate") { | |
| if($error = adv_email_validate($edit['mail'])) { | |
| form_set_error('mail', $error); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // $Id | |
| define(MODULE_DESCRIPTION, 'Provides tokens that will contain text when a taxonomy term is present. For use with taxonomy module.'); | |
| /** | |
| * Implements hook_help() | |
| * | |
| */ | |
| function taxonomy_token_help($path, $arg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function um_common_form_alter(&$form, $form_state, $form_id) { | |
| // hide split teaser on node forms | |
| if (isset($form['#node']) && $form_id == $form['#node']->type .'_node_form') { | |
| $form['body_field']['teaser_include'] = array( | |
| '#type' => 'value', | |
| '#value' => TRUE, | |
| ); | |
| } | |
| // user login block changes | |
| elseif(($form_id == 'user_login_block')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // geocode_update.module | |
| /** | |
| * Implementation of hook_cron() | |
| * | |
| * Loads all the locations on the site which have invalid latitude/longitude, | |
| * then uses the Google geocoder to update the latitude/longitude, if possible. | |
| */ | |
| function geocode_update_cron() { |
NewerOlder