$option_option){ inkthemes_delete_option( "{$option_id}_{$option_key}" ); } } else if(is_array($option_type)) { foreach($option_type as $inner_option){ $option_id = $inner_option['id']; inkthemes_delete_option( $option_id ); } } else { inkthemes_delete_option( $option_id ); } } } //When Theme Options page is reset - Add the of_options option if($page == 'optionsframework'){ inkthemes_delete_option( 'of_options' ); } } /*-----------------------------------------------------------------------------------*/ /* Build the Options Page - optionsframework_options_page */ /*-----------------------------------------------------------------------------------*/ function inkthemes_optionsframework_options_page(){ $options = inkthemes_get_option('of_template'); $themename = inkthemes_get_option('of_themename'); ?>