From 0b1a646ff7c70b6a586b404dba6dbb3ae65aa11e Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Fri, 6 May 2016 13:54:45 +0100 Subject: [PATCH] Issue #2714375 by kiamlaluno, malavya: hook_form_alter() implementations are still commented with a reference to a form builder that doesn't exist anymore --- core/modules/book/book.module | 4 ++-- core/modules/editor/editor.module | 4 ++-- core/modules/forum/forum.module | 6 +++--- core/modules/menu_ui/menu_ui.module | 4 ++-- core/modules/path/path.module | 2 +- core/modules/system/system.module | 4 ++-- core/themes/seven/seven.theme | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/core/modules/book/book.module b/core/modules/book/book.module index f9a6ad21a14..ecccb745272 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -127,7 +127,7 @@ function book_node_links_alter(array &$links, NodeInterface $node, array &$conte } /** - * Implements hook_form_BASE_FORM_ID_alter() for node_form(). + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. * * Adds the book form element to the node form. * @@ -323,7 +323,7 @@ function book_node_prepare_form(NodeInterface $node, $operation, FormStateInterf } /** - * Implements hook_form_BASE_FORM_ID_alter(). + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\Form\NodeDeleteForm. * * Alters the confirm form for a single node deletion. */ diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index 01d5c5eef64..7c822ede5fd 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -66,7 +66,7 @@ function editor_element_info_alter(&$types) { } /** - * Implements hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter() for \Drupal\filter\FilterFormatListBuilder. */ function editor_form_filter_admin_overview_alter(&$form, FormStateInterface $form_state) { // @todo Cleanup column injection: https://www.drupal.org/node/1876718. @@ -88,7 +88,7 @@ function editor_form_filter_admin_overview_alter(&$form, FormStateInterface $for } /** - * Implements hook_form_BASE_FORM_ID_alter() for 'filter_format_form'. + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\filter\FilterFormatEditForm. */ function editor_form_filter_format_form_alter(&$form, FormStateInterface $form_state) { $editor = $form_state->get('editor'); diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 3e3cc336853..330688756f9 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -282,7 +282,7 @@ function forum_comment_delete(CommentInterface $comment) { } /** - * Implements hook_form_BASE_FORM_ID_alter(). + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\taxonomy\VocabularyForm. */ function forum_form_taxonomy_vocabulary_form_alter(&$form, FormStateInterface $form_state, $form_id) { $vid = \Drupal::config('forum.settings')->get('vocabulary'); @@ -304,7 +304,7 @@ function forum_form_taxonomy_vocabulary_form_alter(&$form, FormStateInterface $f } /** - * Implements hook_form_FORM_ID_alter() for taxonomy_term_form(). + * Implements hook_form_FORM_ID_alter() for \Drupal\taxonomy\TermForm. */ function forum_form_taxonomy_term_form_alter(&$form, FormStateInterface $form_state, $form_id) { $vid = \Drupal::config('forum.settings')->get('vocabulary'); @@ -315,7 +315,7 @@ function forum_form_taxonomy_term_form_alter(&$form, FormStateInterface $form_st } /** - * Implements hook_form_BASE_FORM_ID_alter() for node_form(). + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. */ function forum_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) { $node = $form_state->getFormObject()->getEntity(); diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module index 99b61d09ec1..f03d4af6b5f 100644 --- a/core/modules/menu_ui/menu_ui.module +++ b/core/modules/menu_ui/menu_ui.module @@ -257,7 +257,7 @@ function menu_ui_get_menu_link_defaults(NodeInterface $node) { } /** - * Implements hook_form_BASE_FORM_ID_alter() for node_form. + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. * * Adds menu item fields to the node form. * @@ -385,7 +385,7 @@ function menu_ui_form_node_form_submit($form, FormStateInterface $form_state) { } /** - * Implements hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter() for \Drupal\node\NodeTypeForm. * * Adds menu options to the node type form. * diff --git a/core/modules/path/path.module b/core/modules/path/path.module index 06efa7bfe42..3d7f1d0533d 100644 --- a/core/modules/path/path.module +++ b/core/modules/path/path.module @@ -38,7 +38,7 @@ function path_help($route_name, RouteMatchInterface $route_match) { } /** - * Implements hook_form_BASE_FORM_ID_alter() for node_form(). + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. */ function path_form_node_form_alter(&$form, FormStateInterface $form_state) { $node = $form_state->getFormObject()->getEntity(); diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 787225220c3..813950e9168 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -756,7 +756,7 @@ function system_form_alter(&$form, FormStateInterface $form_state) { } /** - * Implements hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter() for \Drupal\user\AccountForm. */ function system_form_user_form_alter(&$form, FormStateInterface $form_state) { if (\Drupal::config('system.date')->get('timezone.user.configurable')) { @@ -765,7 +765,7 @@ function system_form_user_form_alter(&$form, FormStateInterface $form_state) { } /** - * Implements hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter() for \Drupal\user\RegisterForm. */ function system_form_user_register_form_alter(&$form, FormStateInterface $form_state) { $config = \Drupal::config('system.date'); diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 9afa603b2b6..5ace6b83c2c 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -145,7 +145,7 @@ function seven_preprocess_maintenance_page(&$variables) { } /** - * Implements hook_form_BASE_FORM_ID_alter(). + * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. * * Changes vertical tabs to container and adds meta information. */