From 9c3b49a9a4cc392840f99d874f7c80547a409cb1 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Tue, 11 Sep 2012 08:49:22 -0700 Subject: [PATCH] Issue #262690 by Albert Volkman: Use correct name for Form API not Forms API --- CHANGELOG.txt | 2 +- includes/install.core.inc | 6 +++--- modules/node/node.module | 2 +- modules/system/system.api.php | 4 ++-- modules/system/theme.api.php | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7d01815ba55..e0717ccac1b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -967,7 +967,7 @@ Drupal 5.0, 2007-01-15 - Removed the archive module. - Upgrade system: * Created space for update branches. -- Forms API: +- Form API: * Made it possible to programmatically submit forms. * Improved api for multistep forms. - Theme system: diff --git a/includes/install.core.inc b/includes/install.core.inc index ec3a8539b41..fc37de174e4 100644 --- a/includes/install.core.inc +++ b/includes/install.core.inc @@ -1674,7 +1674,7 @@ function install_check_requirements($install_state) { } /** - * Forms API array definition for site configuration. + * Form API array definition for site configuration. */ function _install_configure_form($form, &$form_state, &$install_state) { include_once DRUPAL_ROOT . '/includes/locale.inc'; @@ -1787,7 +1787,7 @@ function _install_configure_form($form, &$form_state, &$install_state) { } /** - * Forms API validate for the site configuration form. + * Form API validate for the site configuration form. */ function install_configure_form_validate($form, &$form_state) { if ($error = user_validate_name($form_state['values']['account']['name'])) { @@ -1802,7 +1802,7 @@ function install_configure_form_validate($form, &$form_state) { } /** - * Forms API submit for the site configuration form. + * Form API submit for the site configuration form. */ function install_configure_form_submit($form, &$form_state) { global $user; diff --git a/modules/node/node.module b/modules/node/node.module index 2baee430172..f3375f32c71 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2764,7 +2764,7 @@ function node_search_validate($form, &$form_state) { // Insert extra restrictions into the search keywords string. if (isset($form_state['values']['type']) && is_array($form_state['values']['type'])) { - // Retrieve selected types - Forms API sets the value of unselected + // Retrieve selected types - Form API sets the value of unselected // checkboxes to 0. $form_state['values']['type'] = array_filter($form_state['values']['type']); if (count($form_state['values']['type'])) { diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 4f5c7880ca2..3f445dba373 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -623,7 +623,7 @@ function hook_cron_queue_info_alter(&$queues) { } /** - * Allows modules to declare their own Forms API element types and specify their + * Allows modules to declare their own Form API element types and specify their * default values. * * This hook allows modules to declare their own form element types and to @@ -1041,7 +1041,7 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) { * This 'abc' object will then be passed into the callback functions defined * for the menu item, such as the page callback function mymodule_abc_edit() * to replace the integer 1 in the argument array. Note that a load function - * should return FALSE when it is unable to provide a loadable object. For + * should return FALSE when it is unable to provide a loadable object. For * example, the node_load() function for the 'node/%node/edit' menu item will * return FALSE for the path 'node/999/edit' if a node with a node ID of 999 * does not exist. The menu routing system will return a 404 error in this case. diff --git a/modules/system/theme.api.php b/modules/system/theme.api.php index cd7ecfde8ed..6865421cfb8 100644 --- a/modules/system/theme.api.php +++ b/modules/system/theme.api.php @@ -70,8 +70,8 @@ * Allow themes to alter the theme-specific settings form. * * With this hook, themes can alter the theme-specific settings form in any way - * allowable by Drupal's Forms API, such as adding form elements, changing - * default values and removing form elements. See the Forms API documentation on + * allowable by Drupal's Form API, such as adding form elements, changing + * default values and removing form elements. See the Form API documentation on * api.drupal.org for detailed information. * * Note that the base theme's form alterations will be run before any sub-theme