Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_s9ymarkup
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2418/plugins/serendipity_event_s9ymarkup
Modified Files:
Tag: branch-smarty
serendipity_event_s9ymarkup.php
Log Message:
- Don't hack config variables to implement 'info', use a function instead.
If that function is defined - it will be run to display an example of the plugin as defined within the plugin
INFO: Might need tweaking, but we need to get the 'info' thing out of CVS ASAP :)
Index: serendipity_event_s9ymarkup.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -u -d -r1.5.2.3 -r1.5.2.4
--- serendipity_event_s9ymarkup.php 8 Oct 2004 12:05:05 -0000 1.5.2.3
+++ serendipity_event_s9ymarkup.php 9 Oct 2004 19:04:41 -0000 1.5.2.4
@@ -46,7 +46,6 @@
);
$conf_array = array();
- $conf_array[] = 'info';
foreach($this->markup_elements as $element) {
$conf_array[] = $element['name'];
}
@@ -61,19 +60,10 @@
function introspect_config_item($name, &$propbag)
{
- switch($name) {
- case 'info':
- $propbag->add('type', 'info');
- $propbag->add('description', PLUGIN_EVENT_S9YMARKUP_TRANSFORM);
- break;
-
- default:
- $propbag->add('type', 'boolean');
- $propbag->add('name', $name);
- $propbag->add('description', sprintf(APPLY_MARKUP_TO, $name));
- $propbag->add('default', 'true');
- break;
- }
+ $propbag->add('type', 'boolean');
+ $propbag->add('name', $name);
+ $propbag->add('description', sprintf(APPLY_MARKUP_TO, $name));
+ $propbag->add('default', 'true');
return true;
}
|