User Documentation

Extension Hooks

member_register_validate_members

  • File: mod.user.php
  • Method: activate_member()
  • Possible Uses: Additional processing when member(s) are self validated
  • Variables:

    • $member_id - The member id of the member who is trying to validate
  • Notes: A direct copy of the one in the Member module. User has an override of that one for allowing new functionality
$edata = ee()->extensions->call('member_register_validate_members', $member_id);
if (ee()->extensions->end_script === TRUE) return;

user_edit_end

  • File: mod.user.php
  • Method: edit_profile()
  • Possible Uses: More processing can be done when a member edits their profile
  • Variables:
    • $member_id - The member id of the member doing the edit
    • $this->data - Array of data used to UPDATE exp_members
    • $cfields - Array of data used to UPDATE exp_member_data
$edata = ee()->extensions->call(
    'user_edit_end',
    $query->row('member_id'),
    $this->insert_data,
    $cfields
);
if (ee()->extensions->end_script === TRUE) return;

user_register_end

  • File: mod.user.php
  • Method: reg()
  • Possible Uses: Additional processing when a member is created through the User Side
  • Variables:
    • $this - User class object
    • $member_id - The member id of the member just created
$edata = ee()->extensions->call('user_register_end', $this, $cust_fields, $member_id);
if (ee()->extensions->end_script === TRUE) return;

user_register_error_checking

  • File: mod.user.php
  • Method: activate_member()
  • Possible Uses: Additional processing when member(s) are self validated
  • Variables:

    • $member_id - The member id of the member
  • Notes: A copy of the one in the Member module. User has an override of that one for allowing new functionality
$errors = ee()->extensions->call('user_register_error_checking', $this, $errors);
if (ee()->extensions->end_script === TRUE) return;

user_register_start

  • File: mod.user.php
  • Method: reg()
  • Possible Uses: Ability to seize control of the member registration routine in User
  • Variables:

    • $this - User class object
  • Notes: Called after some security checks, user $_POST
$edata = ee()->extensions->call('user_register_start', $this);
if (ee()->extensions->end_script === TRUE) return;

Support

Having problems setting up and/or using User? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.