array( 'name' => 'report', 'label' => __( 'System Report', 'gravityforms' ), ), ); // Add Update subview if user has capabilities. if ( current_user_can( 'install_plugins' ) ) { $subviews[20] = array( 'name' => 'updates', 'label' => __( 'Updates', 'gravityforms' ), ); } /** * Modify menu items which will appear in the System Status menu. * * @since 2.2 * @param array $subviews An array of menu items to be displayed on the System Status page. */ $subviews = apply_filters( 'gform_system_status_menu', $subviews ); ksort( $subviews, SORT_NUMERIC ); return $subviews; } /** * Get current System Status subview. * * @since 2.2 * @access public * * @return string */ public static function get_current_subview() { return rgempty( 'subview', $_GET ) ? 'report' : rgget( 'subview' ); } /** * Render System Status page header. * * @since 2.2 * @access public * * @param string $title Page title. * * @uses GFCommon::display_dismissible_message() * @uses GFCommon::get_base_url() * @uses GFCommon::get_browser_class() * @uses GFCommon::get_remote_message() * @uses GFSystemStatus::get_current_subview() * @uses GFSystemStatus::get_subviews() */ public static function page_header( $title = '' ) { GFForms::admin_header( self::get_subviews(), false ); } /** * Render System Status page footer. * * @since 2.2 * @access public */ public static function page_footer() { GFForms::admin_footer(); } }