function do_plugin_action($name) { if (!PukiWikiPlugin::exist_plugin_action($name)) { return array(); } PukiWikiPlugin::do_plugin_init($name); $retvar = call_user_func('plugin_' . $name . '_action'); // 文字エンコーディング検出用 hidden フィールドを挿入する return preg_replace('/(<form[^>]*>)/', "\$1\n<div><input type=\"hidden\" name=\"encode_hint\" value=\"ぷ\" /></div>", $retvar); }