function quickedit_field_node_created_edit_form_submit in Quick Edit 7
Form submission handler for quickedit_field_node_created_edit_form().
See also
quickedit_field_node_created_edit_form()
quickedit_field_node_created_edit_form_validate()
1 string reference to 'quickedit_field_node_created_edit_form_submit'
- quickedit_field_node_created_edit_form in includes/
node.inc - Form constructor; in-place editing form for node's 'created' "extra field".
File
- includes/
node.inc, line 164 - Implements Quick Edit module hooks on behalf of node.module.
Code
function quickedit_field_node_created_edit_form_submit($form, &$form_state) {
$entity = $form_state['entity'];
$date = $form_state['values']['date'];
$entity->created = !empty($date) ? strtotime($date) : REQUEST_TIME;
// We must load fape.inc to use _quickedit_entity_set_log().
module_load_include('inc', 'quickedit', 'includes/fape');
_quickedit_entity_set_log($entity, t('Date'));
_quickedit_entity_save_to_tempstore($form_state['entity_type'], $form_state['entity_id'], $entity);
}