Changeset 103 for trunk/plugins

Show
Ignore:
Timestamp:
04/09/06 18:01:09 (3 years ago)
Author:
michiel
Message:

preparing for plugin admin stuff.
I had this idea, and before it's gone again I had to write it down.
Only the basics are here, this needs an actual implementation.
Ah well, you get the idea.

Comments welcome.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/test.php

    r83 r103  
    44 */ 
    55register_plugin("test", "text_output"); 
     6register_admin_plugin("test", "text_output"); 
    67 
     8/* function to run when this plugin kicks in */ 
     9/* name is plugin_pluginname */ 
    710function plugin_test($data) { 
    811        $output = str_ireplace("michiel", "The MvBlog Projectleader", $data); 
    912        return $output; 
    1013} 
     14 
     15/* admin functions */ 
     16/* edit, save and overview are required */ 
     17function plugin_test_edit() { 
     18        /* code to show a screen to edit settings etc */ 
     19} 
     20 
     21function plugin_test_save() { 
     22        /* code to save changes */ 
     23} 
     24 
     25function plugin_test_overview() { 
     26        /* code to show screen with items or description of plugin or whatever */ 
     27} 
    1128?>