APF_Demo_ManageOptions_Reset::replyToLoadTab PHP Method

replyToLoadTab() public method

Triggered when the tab is loaded.
public replyToLoadTab ( $oFactory )
    public function replyToLoadTab($oFactory)
    {
        $oFactory->addSettingSections($this->_sPageSlug, array('section_id' => $this->_sSectionID, 'tab_slug' => $this->_sTabSlug, 'title' => __('Reset Button', 'admin-page-framework-loader'), 'order' => 10));
        $oFactory->addSettingFields($this->_sSectionID, array('field_id' => 'reset_confirmation_check', 'title' => __('Confirm Reset', 'admin-page-framework-loader'), 'type' => 'checkbox', 'label' => __('I understand the options will be erased by pressing the reset button.', 'admin-page-framework-loader'), 'save' => false, 'value' => false), array('field_id' => 'submit_skip_confirmation', 'type' => 'submit', 'label' => __('Reset', 'admin-page-framework-loader'), 'reset' => true, 'skip_confirmation' => true, 'description' => array(__('With the <code>skip_confirmation</code> argument, you can skip the confirmation.', 'admin-page-framework-loader'), __('And use a checkbox to let the user perform the action by pressing the button only once.', 'admin-page-framework-loader')), 'redirect_url' => add_query_arg(array('page' => $this->_sPageSlug, 'tab' => 'saved_data', 'settings-updated' => true))));
    }