function fape_field_edit_node_created_form_submit in Field API Pane Editor (FAPE) 7
Sets the node's creation date based on the submitted date value.
See also
1 string reference to 'fape_field_edit_node_created_form_submit'
- fape_field_edit_node_created_form in ./
fape.module - Subform to edit the entity 'created' field.
File
- ./
fape.module, line 422 - Adds direct field editing via contextual links.
Code
function fape_field_edit_node_created_form_submit($form, &$form_state) {
$date = $form_state['values']['date'];
$form_state['entity']->created = !empty($date) ? strtotime($date) : REQUEST_TIME;
}