$function) { // Add something to set correct gettext domain for plugin if (function_exists($function)) { $function(&$Data); } } } // Variable-length argument lists have a slight problem when // passing values by reference. Pity. This is a workaround. return $Data; } // On startup, register all plugins configured for use if (is_array($plugins)) foreach ($plugins as $id => $name) use_plugin($name); ?>