You are here

function date_deploy_rebuild_date in Deploy - Content Staging 6

Proxy function for rebuilding a date field array. The array structure that we shall build varies based on widget type, also the date input varies based on date type.

Parameters

$date: An array of date information via a node_load() call.

$field: An array of information for this specific date field.

Return value

An array of date information suitable for drupal_execute() calls.

1 call to date_deploy_rebuild_date()
date_node_deploy in modules/date_deploy/date_deploy.module
Implementation of hook_node_deploy().

File

modules/date_deploy/date_deploy.module, line 39

Code

function date_deploy_rebuild_date($date, $field) {
  switch ($field['type']) {
    case 'datetime':
      return date_deploy_rebuild_date_datetime($date, $field);
  }
}