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 |
Jump to:
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
#2
Can you explain what this code is doing? Is it a hook for the date module? What does it do?
#3
Steve? Are you still with us? What does you code do exactly?
#4
Reopen, if you feel like answering my question...