Changeset 293

Show
Ignore:
Timestamp:
04/21/08 17:09:25 (7 months ago)
Author:
rho
Message:

* Use publish event hook
Signed-off: Rolando Espinoza La fuente <rho@prosoftpeople.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • status/trunk/lib.php

    r292 r293  
    9090        if(isloggedin() && (empty($page_owner) || $page_owner == $_SESSION['userid'])) { 
    9191         
     92                //set the user flag with the correct values 
     93                user_flag_set($flag_name, $status_value, $_SESSION['userid']); 
     94 
    9295                // Hook  
    9396                $obj = new StdClass; 
    9497                $obj->owner = $_SESSION['userid']; 
    9598                $obj->value = $status_value; 
    96                 $obj = plugin_hook('status', 'update', $obj); 
    97                 if (!empty($obj->value)) { 
    98                     $status_value = $obj->value; 
    99                 } 
    100  
    101                 //set the user flag with the correct values 
    102                 user_flag_set($flag_name, $status_value, $_SESSION['userid']); 
     99                $obj = plugin_hook('status', 'publish', $obj); 
    103100 
    104101    }