Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_textile
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2418/plugins/serendipity_event_textile
Modified Files:
Tag: branch-smarty
serendipity_event_textile.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_textile.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_textile/serendipity_event_textile.php,v
retrieving revision 1.6.2.4
retrieving revision 1.6.2.5
diff -u -d -r1.6.2.4 -r1.6.2.5
--- serendipity_event_textile.php 8 Oct 2004 12:05:06 -0000 1.6.2.4
+++ serendipity_event_textile.php 9 Oct 2004 19:04:41 -0000 1.6.2.5
@@ -56,7 +56,6 @@
);
$conf_array = array();
- $conf_array[] = 'info';
foreach($this->markup_elements as $element) {
$conf_array[] = $element['name'];
}
@@ -71,19 +70,10 @@
function introspect_config_item($name, &$propbag)
{
- switch($name) {
- case 'info':
- $propbag->add('type', 'info');
- $propbag->add('description', PLUGIN_EVENT_TEXTILE_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;
}
@@ -226,4 +216,4 @@
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
\ No newline at end of file
+?>
|