function _quickedit_entity_save_to_tempstore in Quick Edit 7
Saves an entity to TempStore.
Parameters
string $entity_type: The type of the entity being saved to TempStore.
int $entity_id: The ID of the entity being saved to TempStore.
stdClass $entity: The entity object being saved to TempStore.
4 calls to _quickedit_entity_save_to_tempstore()
- quickedit_field_edit_form_submit in includes/
fape.inc - Form submission handler for quickedit_field_edit_form().
- 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().
File
- ./
quickedit.module, line 961 - Provides in-place content editing functionality for fields.
Code
function _quickedit_entity_save_to_tempstore($entity_type, $entity_id, $entity) {
ctools_include('object-cache');
$tempstore_id = _quickedit_entity_tempstore_id($entity_type, $entity_id);
ctools_object_cache_set('quickedit', $tempstore_id, $entity);
}