/** * Do not show the documents tab on the array of pages set here * @static * @param $mixed Array of page types to not show the Documents tab on */ static function no_documents_tab($array) { if (is_array($array)) { self::$noDocumentsList = $array; } else { self::$noDocumentsList = array($array); } }
/** * Do not show the documents tab on the array of pages set here * @static * @param $mixed Array of page types to not show the Documents tab on */ static function no_documents_tab($array = array()) { if (empty($array)) { return; } if (is_array($array)) { self::$noDocumentsList = $array; } else { self::$noDocumentsList = array($array); } }