diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module index 1b94b91..28d3fb5 100644 --- a/core/modules/edit/edit.module +++ b/core/modules/edit/edit.module @@ -28,6 +28,20 @@ function edit_custom_theme() { } /** + * Implements hook_theme(). + */ +function edit_theme() { + return array( + 'node' => array( + 'preprocess' => array('edit_preprocess_node'), + ), + 'field' => array( + 'preprocess' => array('edit_preprocess_field'), + ), + ); +} + +/** * Implements hook_permission(). */ function edit_permission() { diff --git a/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php b/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php index e1ce851..143f693 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php @@ -121,8 +121,8 @@ function testUserWithPermission() { // First command: settings. $this->assertIdentical('settings', $ajax_commands[0]['command'], 'The first AJAX command is a settings command.'); $edit_editors = array( - 'direct' => array('widget' => 'direct'), 'form' => array('widget' => 'formEditEditor'), + 'direct' => array('widget' => 'direct'), ); $this->assertIdentical($edit_editors, $ajax_commands[0]['settings']['edit']['editors'], 'The settings command contains the expected settings.');