function _log_action_date_form_action in Log entity 7
Log action form with date field (action helper function).
Parameters
Log $log: The log passed into the action function.
array $context: The context passed into the action function.
2 calls to _log_action_date_form_action()
- log_clone_action in ./
log.module - Action function for log_clone_action.
- log_reschedule_action in ./
log.module - Action function for log_reschedule_action.
File
- ./
log.module, line 734 - Log - A general purpose record keeping system.
Code
function _log_action_date_form_action(Log $log, array $context) {
// Set the date.
$log->timestamp = strtotime($context['timestamp']);
// Mark the log as "not done".
$log->done = FALSE;
// Save the log.
log_save($log);
}