public static function init_form() { static $init_complete = false; if ($init_complete) { return; } // we load any form settings from the session into // our local static variable so we can process things like required fields. if (isset($_SESSION['_plugin_form'])) { self::$form_options = $_SESSION['_plugin_form']; } else { $_SESSION['_plugin_form'] = array(); } $init_complete = true; }