You are here

function _scheduler_use_date_popup in Scheduler 7

Same name and namespace in other branches
  1. 6 scheduler.module \_scheduler_use_date_popup()

Returns whether we use the date_popup for date/time selection.

Return value

bool TRUE if we are using date_popup. FALSE otherwise.

3 calls to _scheduler_use_date_popup()
scheduler_date_value_callback in ./scheduler.edit.inc
Callback function for the Scheduler date entry elements.
_scheduler_form_alter in ./scheduler.edit.inc
Helper function that does all the work for the real hook_form_alter().
_scheduler_strtotime in ./scheduler.module
Converts a time string from the user's timezone into a Unix timestamp.

File

./scheduler.module, line 198
Scheduler publishes and unpublishes nodes on dates specified by the user.

Code

function _scheduler_use_date_popup() {
  return module_exists('date_popup') && variable_get('scheduler_field_type', 'date_popup') == 'date_popup';
}