Changeset 1605


Ignore:
Timestamp:
Nov 14, 2006, 1:51:15 AM (17 years ago)
Author:
rvelices
Message:

plugins: added actions for register_user, delete_categories, delete_elements
and delete_user

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r1592 r1605  
    125125    $counts['del_categories']+= count($ids);
    126126  }
     127  trigger_action('delete_categories', $ids);
    127128}
    128129
     
    201202    $counts['del_elements']+= count($ids);
    202203  }
     204  trigger_action('delete_elements', $ids);
    203205}
    204206
     
    269271;';
    270272  pwg_query($query);
     273
     274  trigger_action('delete_user', $user_id);
    271275}
    272276
  • trunk/include/functions_user.inc.php

    r1583 r1605  
    126126
    127127    create_user_infos($next_id);
     128
     129    trigger_action('register_user',
     130      array(
     131        'id'=>$next_id,
     132        'username'=>$login,
     133        'email'=>$mail_address,
     134       )
     135      );
    128136  }
    129137
Note: See TracChangeset for help on using the changeset viewer.