You are here

function _quickedit_entity_set_log in Quick Edit 7

Sets a revision log message for entities configured to create a new revision.

4 calls to _quickedit_entity_set_log()
quickedit_field_node_author_edit_form_submit in includes/node.inc
Form submission handler for quickedit_field_node_author_edit_form().
quickedit_field_node_created_edit_form_submit in includes/node.inc
Form submission handler for quickedit_field_node_created_edit_form().
quickedit_field_node_title_edit_form_submit in includes/node.inc
Form submission handler for quickedit_field_node_title_edit_form().
_quickedit_build_entity in includes/fape.inc
Returns a cloned entity containing updated field values.

File

includes/fape.inc, line 93
This is now effectively a light-weight duplicate of FAPE.module, providing just the parts Quick Edit needs.

Code

function _quickedit_entity_set_log(&$entity, $field_name) {
  if ($entity->revision) {
    $entity->log = t('Updated the %field-name field through in-place editing.', array(
      '%field-name' => $field_name,
    ));
  }
}