Download & Extend

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

Project:Scheduler
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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 :)

Comments

#1

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

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

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

#4

Status:postponed (maintainer needs more info)» closed (won't fix)

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

nobody click here