summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2008-09-30 21:30:16 (GMT)
committer Earl Miles2008-09-30 21:30:16 (GMT)
commit8fc82b15d11a5b6b08a3711b2be4660dcfba234b (patch)
treeff5e857ea2768d4cdec176a2ac369758ae6f92d9
parent31736e8a27553618387d2c3ff4c6c6b01f2f2be4 (diff)
Fix broken date argument handlers.
-rw-r--r--handlers/views_handler_argument.inc10
-rw-r--r--modules/node/views_handler_argument_dates_various.inc6
2 files changed, 6 insertions, 10 deletions
diff --git a/handlers/views_handler_argument.inc b/handlers/views_handler_argument.inc
index 2f9fdc1..dd454d7 100644
--- a/handlers/views_handler_argument.inc
+++ b/handlers/views_handler_argument.inc
@@ -48,16 +48,6 @@ class views_handler_argument extends views_handler {
function init(&$view, &$options) {
parent::init($view, $options);
- // Ensure this is set; early arguments did not have validators.
- if (empty($this->options['validate_type'])) {
- $this->options['validate_type'] = 'none';
- }
- if (empty($this->options['validate_fail'])) {
- $this->options['validate_fail'] = 'not found';
- }
- if (empty($this->options['default_argument_type'])) {
- $this->options['default_argument_type'] = 'fixed';
- }
}
/**
diff --git a/modules/node/views_handler_argument_dates_various.inc b/modules/node/views_handler_argument_dates_various.inc
index 09047cd..1c83c6c 100644
--- a/modules/node/views_handler_argument_dates_various.inc
+++ b/modules/node/views_handler_argument_dates_various.inc
@@ -8,6 +8,7 @@ class views_handler_argument_node_created_fulldate extends views_handler_argumen
* Constructor implementation
*/
function construct() {
+ parent::construct();
$this->format = 'F j, Y';
$this->arg_format = 'Ymd';
$this->formula = views_date_sql_format($this->arg_format, "***table***.$this->real_field");
@@ -37,6 +38,7 @@ class views_handler_argument_node_created_year extends views_handler_argument_da
* Constructor implementation
*/
function construct() {
+ parent::construct();
$this->arg_format = 'Y';
$this->formula = views_date_sql_extract('YEAR', "***table***.$this->real_field");
}
@@ -50,6 +52,7 @@ class views_handler_argument_node_created_year_month extends views_handler_argum
* Constructor implementation
*/
function construct() {
+ parent::construct();
$this->format = 'F, Y';
$this->arg_format = 'Ym';
$this->formula = views_date_sql_format($this->arg_format, "***table***.$this->real_field");
@@ -79,6 +82,7 @@ class views_handler_argument_node_created_month extends views_handler_argument_d
* Constructor implementation
*/
function construct() {
+ parent::construct();
$this->formula = views_date_sql_extract('MONTH', "***table***.$this->real_field");
$this->format = 'F';
$this->arg_format = 'm';
@@ -114,6 +118,7 @@ class views_handler_argument_node_created_day extends views_handler_argument_dat
* Constructor implementation
*/
function construct() {
+ parent::construct();
$this->formula = views_date_sql_extract('DAY', "***table***.$this->real_field");
$this->format = 'j';
$this->arg_format = 'd';
@@ -149,6 +154,7 @@ class views_handler_argument_node_created_week extends views_handler_argument_da
* Constructor implementation
*/
function construct() {
+ parent::construct();
$this->arg_format = 'w';
$this->formula = views_date_sql_extract('WEEK', "***table***.$this->real_field");
}