trigger('plugin_event',$array); * Where 'plugin' is the folder of their plugin and 'event' is a unique name of the event. * $array is data which is sent to the triggered function. eg. myfunction($array) in the example below. * * @return array */ function config() { $event = array(); $event[] = array( 'name' => "login", // when this is triggered... (see http://e107.org/developer-manual/classes-and-methods#events) 'function' => "myfunction", // ..run this function (see below). ); return $event; } function myfunction($data) // the method to run. { print_a($data); } } //end class