/** * Returns the layout's fields * * @access public * @return array */ public function fields() { $fields = parent::fields(); $fields['options'] = array('type' => 'keyval', 'after_html' => "<br>To add select options, put in values separated by a colon like so 'value:label'", 'allow_numeric_indexes' => TRUE); $fields = $this->process_fields($fields); return $fields; }
/** * Returns the layout's fields * * @access public * @return array */ public function fields() { $fields = parent::fields(); $fields['format'] = array('type' => 'select', 'options' => array('m/d/Y' => 'm/d/Y', 'Y-m-d' => 'Y-m-d', 'd-mm-Y' => 'd-m-Y')); $fields['min_date'] = array('type' => 'date'); $fields['max_date'] = array('type' => 'date'); $fields = $this->process_fields($fields); return $fields; }
/** * Returns the layout's fields * * @access public * @return array */ public function fields() { $fields = parent::fields(); unset($fields['required'], $fields['attributes']); return $fields; }