updated elysia_cron, elfinder, metatag, libraries, email_registration, migrate, nodeform_cols

This commit is contained in:
2019-05-13 18:03:41 +02:00
parent e08a2639c6
commit 58cd990c8c
346 changed files with 8636 additions and 4770 deletions

View File

@@ -108,6 +108,22 @@ function hook_entity_diff($old_entity, $new_entity, $context) {
* @see hook_entity_diff()
*/
function hook_entity_diff_alter(&$entity_diffs, $context) {
if ($context['entity_type'] == 'node') {
$old_entity = $context['old_entity'];
$new_entity = $context['new_entity'];
$entity_diffs['custom_vid'] = array(
'#name' => t('Second VID'),
'#old' => array($old_entity->vid),
'#new' => array($new_entity->vid),
'#weight' => 5,
);
$entity_diffs['custom_log'] = array(
'#name' => t('Second log'),
'#old' => array($old_entity->log),
'#new' => array($new_entity->log),
'#weight' => 6,
);
}
}
/**