/** * Get display parameters of View * * @param string $view_type The view type of View * * @return array */ static function view_display_settings($view_type, &$dargs = null) { $dargs = array(); $dargs['view-type'] = $view_type; // Field settings of a item PT_CV_Functions::view_get_display_settings($dargs); // Other settings PT_CV_Functions::view_get_other_settings($dargs); // View type settings $dargs['view-type-settings'] = PT_CV_Functions::settings_values_by_prefix(PT_CV_PREFIX . $view_type . '-'); global $pt_cv_glb, $pt_cv_id; $pt_cv_glb[$pt_cv_id]['dargs'] = $dargs; return $dargs; }