Issue #1204784 by bdgreen, Kevin Morse, valthebald, kiamlaluno, droplet: Fix code comment in drupal_retrieve_form
parent
bafefe41a6
commit
d8f08eb76e
|
@ -727,8 +727,9 @@ function drupal_retrieve_form($form_id, &$form_state) {
|
||||||
// Record the filepath of the include file containing the original form, so
|
// Record the filepath of the include file containing the original form, so
|
||||||
// the form builder callbacks can be loaded when the form is being rebuilt
|
// the form builder callbacks can be loaded when the form is being rebuilt
|
||||||
// from cache on a different path (such as 'system/ajax'). See
|
// from cache on a different path (such as 'system/ajax'). See
|
||||||
// form_get_cache().
|
// form_get_cache(). Don't do this in maintenance mode as Drupal may not be
|
||||||
// $menu_get_item() is not available during installation.
|
// fully bootstrapped (i.e. during installation) in which case
|
||||||
|
// menu_get_item() is not available.
|
||||||
if (!isset($form_state['build_info']['files']['menu']) && !defined('MAINTENANCE_MODE')) {
|
if (!isset($form_state['build_info']['files']['menu']) && !defined('MAINTENANCE_MODE')) {
|
||||||
$item = menu_get_item();
|
$item = menu_get_item();
|
||||||
if (!empty($item['include_file'])) {
|
if (!empty($item['include_file'])) {
|
||||||
|
|
Loading…
Reference in New Issue