User Tools

Site Tools


mantisbt:plugins_sample

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mantisbt:plugins_sample [2008/02/08 11:21]
jreese Updated Supercow plugin
mantisbt:plugins_sample [2013/06/21 09:54] (current)
atrol
Line 1: Line 1:
 ====== Sample Plugins ====== ====== Sample Plugins ======
 +
  
 ===== Super Cow Powers ===== ===== Super Cow Powers =====
Line 18: Line 19:
  
 class SupercowPlugin extends MantisPlugin { class SupercowPlugin extends MantisPlugin {
-  function plugin_callback_supercow_info() {+ 
 +  function register() {
     $this->name        = 'Super Cow Powers';     $this->name        = 'Super Cow Powers';
     $this->description = 'Gives your Mantis installation super cow powers.';     $this->description = 'Gives your Mantis installation super cow powers.';
Line 39: Line 41:
    * Handle the EVENT_PLUGIN_INIT callback.    * Handle the EVENT_PLUGIN_INIT callback.
    */    */
-  function plugin_event_supercow_header() {+  function header() {
     header( 'X-Mantis: This Mantis has super cow powers.' );     header( 'X-Mantis: This Mantis has super cow powers.' );
   }   }
 +
 +}
 </code> </code>
  
Line 100: Line 104:
 } }
 </code> </code>
 +
 +
mantisbt/plugins_sample.1202487692.txt.gz · Last modified: 2008/10/29 04:31 (external edit)