function editor_note_field_update in Editor Notes 7
Implements hook_field_update().
Executes every time entity gets updated.
File
- ./
editor_note.module, line 801 - Main functionality for Editor Notes module.
Code
function editor_note_field_update($entity_type, $entity, $field, $instance, $langcode, &$items) {
if ($field['type'] == 'editor_note') {
foreach ($items as $item) {
if (isset($item['note'])) {
editor_note_save($item['note'], $entity_type, $entity, $field['field_name']);
}
}
}
}