publish_on and unpublish_on dates are not visible in Views arguments [solution provided]

steve.neill - June 11, 2009 - 18:17
Project:Scheduler
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Please add the following code to sceduler.module to fix this:

function scheduler_date_api_fields($field) {
$values = array(
'sql_type' => DATE_UNIX,
'tz_handling' => 'site',
'timezone_field' => '',
'offset_field' => '',
'related_fields' => array(),
'granularity' => array('year', 'month', 'day', 'hour', 'minute', 'second'),
);

switch ($field) {
case 'scheduler.publish_on':
case 'scheduler.unpublish_on':
return $values;
}
}

Thanks :)

#1

steve.neill - June 11, 2009 - 18:19
Title:publish_on and unpublish_on dates are not visible in Views arguments» publish_on and unpublish_on dates are not visible in Views arguments [solution provided]

#2

Eric Schaefer - June 13, 2009 - 06:49
Status:active» postponed (maintainer needs more info)

Can you explain what this code is doing? Is it a hook for the date module? What does it do?

#3

Eric Schaefer - July 11, 2009 - 17:28

Steve? Are you still with us? What does you code do exactly?

#4

Eric Schaefer - July 15, 2009 - 20:14
Status:postponed (maintainer needs more info)» won't fix

Reopen, if you feel like answering my question...

 
 

Drupal is a registered trademark of Dries Buytaert.