Changeset 2236 for branches


Ignore:
Timestamp:
Mar 1, 2008, 4:25:37 PM (17 years ago)
Author:
patdenice
Message:

801: add trigger in register_user function.
805: add 2 triggers in profile.php.
769: correct get_email_address_as_display_text function.

Location:
branches/branch-1_7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/functions_user.inc.php

    r2228 r2236  
    7272  }
    7373
     74  $errors = trigger_event('register_user_check',
     75              $errors,
     76              array(
     77                'login'=>$login,
     78                'password'=>$password,
     79                'email'=>$mail_address,
     80              )
     81            );
     82
    7483  // if no error until here, registration of the user
    7584  if (count($errors) == 0)
     
    12341243  else
    12351244  {
    1236     if (script_basename() == 'admin' and is_adviser())
     1245    if (defined('IN_ADMIN') and is_adviser())
    12371246    {
    12381247      return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
  • branches/branch-1_7/profile.php

    r2228 r2236  
    4242  $userdata = $user;
    4343
     44  trigger_action('loc_begin_profile');
     45
    4446  save_profile_from_post($userdata, $errors);
    4547
     
    6769  }
    6870  $template->set_filename('profile', 'profile.tpl');
     71  trigger_action('loc_end_profile');
    6972  $template->parse('profile');
    7073  include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset for help on using the changeset viewer.