summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-14 13:42:51 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-14 13:42:51 -0500
commit068f1fb1f347faa01d5e5039d870d2f900a23634 (patch)
tree685c7e6db5c6a25544fed7987cf08a50686b26bd
parent519243e6a50117826a815dd60374f6fc753dc843 (diff)
downloadbrdo-068f1fb1f347faa01d5e5039d870d2f900a23634.tar.gz
brdo-068f1fb1f347faa01d5e5039d870d2f900a23634.tar.bz2
Issue #1316866 by nicl, Niklas Fiekas: User_forms() is now redundant.
-rw-r--r--includes/form.inc8
-rw-r--r--modules/user/user.module9
2 files changed, 4 insertions, 13 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 3d5f6f22e..845428846 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -98,7 +98,7 @@
* generate the same form (or very similar forms) using different $form_ids
* can implement hook_forms(), which maps different $form_id values to the
* proper form constructor function. Examples may be found in node_forms(),
- * search_forms(), and user_forms().
+ * and search_forms().
* @param ...
* Any additional arguments are passed on to the functions called by
* drupal_get_form(), including the unique form constructor function. For
@@ -136,7 +136,7 @@ function drupal_get_form($form_id) {
* generate the same form (or very similar forms) using different $form_ids
* can implement hook_forms(), which maps different $form_id values to the
* proper form constructor function. Examples may be found in node_forms(),
- * search_forms(), and user_forms().
+ * and search_forms().
* @param $form_state
* An array which stores information about the form. This is passed as a
* reference so that the caller can use it to examine what in the form changed
@@ -422,7 +422,7 @@ function form_state_defaults() {
* Modules that need to generate the same form (or very similar forms)
* using different $form_ids can implement hook_forms(), which maps
* different $form_id values to the proper form constructor function. Examples
- * may be found in node_forms(), search_forms(), and user_forms().
+ * may be found in node_forms() and search_forms().
* @param $form_state
* A keyed array containing the current state of the form.
* @param $old_form
@@ -628,7 +628,7 @@ function form_load_include(&$form_state, $type, $module, $name = NULL) {
* Modules that need to generate the same form (or very similar forms)
* using different $form_ids can implement hook_forms(), which maps
* different $form_id values to the proper form constructor function. Examples
- * may be found in node_forms(), search_forms(), and user_forms().
+ * may be found in node_forms() and search_forms().
* @param $form_state
* A keyed array containing the current state of the form. Most important is
* the $form_state['values'] collection, a tree of data used to simulate the
diff --git a/modules/user/user.module b/modules/user/user.module
index da61f44d8..586004526 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -3388,15 +3388,6 @@ function user_build_filter_query(SelectQuery $query) {
}
/**
- * Implements hook_forms().
- */
-function user_forms() {
- $forms['user_admin_access_add_form']['callback'] = 'user_admin_access_form';
- $forms['user_admin_access_edit_form']['callback'] = 'user_admin_access_form';
- return $forms;
-}
-
-/**
* Implements hook_comment_view().
*/
function user_comment_view($comment) {