function _quickedit_entity_tempstore_id in Quick Edit 7
Generates an identifier to store an entity in TempStore while editing.
Must be user-specific.
Parameters
string $entity_type: The type of the entity being in-place edited.
int $entity_id: The ID of the entity being in-place edited.
Return value
string The user- and entity-specific TempStore identifier.
3 calls to _quickedit_entity_tempstore_id()
- quickedit_entity_save in includes/
pages.inc - Page callback: Saves an entity into the database, from TempStore.
- quickedit_field_edit in includes/
pages.inc - Page callback: Returns a single field edit form as an Ajax response.
- _quickedit_entity_save_to_tempstore in ./
quickedit.module - Saves an entity to TempStore.
File
- ./
quickedit.module, line 946 - Provides in-place content editing functionality for fields.
Code
function _quickedit_entity_tempstore_id($entity_type, $entity_id) {
global $user;
return $user->uid . '/' . $entity_type . '/' . $entity_id;
}