$per_row = null;\r
\r
$is_multi_select = false;\r
-\r
- switch ($cbag->get('type')) {\r
+ $ctype = $cbag->get('type');\r
+ switch ($ctype) {\r
case 'seperator':\r
?>\r
<tr>\r
case 'hidden':\r
?><tr><td colspan="2"><input class="direction_<?php echo $lang_direction; ?>" type="hidden" name="serendipity[<?php echo $postKey; ?>][<?php echo $config_item; ?>]" value="<?php echo $cbag->get('value'); ?>" /></td></tr><?php\r
break;\r
+ \r
+ default:\r
+ // Unknown configuration key. Let the plugin handle it.\r
+ $addData = func_get_args();\r
+ $eventData = array(\r
+ 'config_item' => $config_item,\r
+ 'cbag' => $cbag,\r
+ 'plugin' => $plugin,\r
+ 'value' => $value,\r
+ 'bag' => $bag,\r
+ 'postKey' => $postKey\r
+ );\r
+ serendipity_plugin_api::hook_event('backend_pluginconfig_' . $ctype, $eventData, $addData);\r
+ break;\r
}\r
}\r
\r