function prep_options() { parent::prep_options(); if (!in_array($this->options['column_type'], array('track', 'room'))) { $this->options['column_type'] = false; } if ($this->options['show_empty_cells'] != null) { $this->options['show_empty_rows'] = $this->options['show_empty_cells']; $this->options['show_empty_columns'] = $this->options['show_empty_cells']; } }
function prep_options() { parent::prep_options(); if (!$this->options['post_id'] && isset($GLOBALS['post'])) { $this->options['post_id'] = $GLOBALS['post']->ID; } if ($this->options['link_all'] === false) { $this->options['link_title'] = false; $this->options['link_speaker'] = false; $this->options['link_company'] = false; } }