Changeset 103 for trunk/plugins/test.php
- Timestamp:
- 04/09/06 18:01:09 (3 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/test.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/test.php
r83 r103 4 4 */ 5 5 register_plugin("test", "text_output"); 6 register_admin_plugin("test", "text_output"); 6 7 8 /* function to run when this plugin kicks in */ 9 /* name is plugin_pluginname */ 7 10 function plugin_test($data) { 8 11 $output = str_ireplace("michiel", "The MvBlog Projectleader", $data); 9 12 return $output; 10 13 } 14 15 /* admin functions */ 16 /* edit, save and overview are required */ 17 function plugin_test_edit() { 18 /* code to show a screen to edit settings etc */ 19 } 20 21 function plugin_test_save() { 22 /* code to save changes */ 23 } 24 25 function plugin_test_overview() { 26 /* code to show screen with items or description of plugin or whatever */ 27 } 11 28 ?>
