Changeset 292

Show
Ignore:
Timestamp:
04/21/08 16:30:56 (7 months ago)
Author:
rho
Message:

* Added basic README.txt with install instructions
* Added plugin hook to allow other plugins listen for status update event

Signed-off: Rolando Espinoza La fuente <rho@prosoftpeople.com>

Files:

Legend:

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

    r237 r292  
    9090        if(isloggedin() && (empty($page_owner) || $page_owner == $_SESSION['userid'])) { 
    9191         
     92                // Hook  
     93                $obj = new StdClass; 
     94                $obj->owner = $_SESSION['userid']; 
     95                $obj->value = $status_value; 
     96                $obj = plugin_hook('status', 'update', $obj); 
     97                if (!empty($obj->value)) { 
     98                    $status_value = $obj->value; 
     99                } 
     100 
    92101                //set the user flag with the correct values 
    93102                user_flag_set($flag_name, $status_value, $_SESSION['userid']);