Issue #262690 by Albert Volkman: Use correct name for Form API not Forms API
parent
a8566322fc
commit
9c3b49a9a4
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue