You are here

function _node_registration_strtotime_format in Node registration 7

Reformats strtotime format to all negatives (to be used in strtotime()).

2 calls to _node_registration_strtotime_format()
_node_registration_strtotime in includes/node_registration.api.inc
Calculates a time from a reference time and strotime offset.
_node_registration_strtotime_debug in includes/node_registration.api.inc
Returns a message for the strtotime format to show the user in admin forms.

File

includes/node_registration.api.inc, line 59
Registration API functions.

Code

function _node_registration_strtotime_format($format) {
  $format = preg_replace('#(^|[^\\+\\d\\-])(\\d+)#', '$1-$2', $format);
  return $format;
}