diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-05-13 11:19:38 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-05-13 11:19:38 -0700 |
commit | d8f08eb76eff46cb44354424d53f68b19d6dca47 (patch) | |
tree | 60fea7b6cd7a2a111db382e661c9965351afb37b /includes | |
parent | bafefe41a64f7f02363c3bfe03392bb50c613a2b (diff) | |
download | brdo-d8f08eb76eff46cb44354424d53f68b19d6dca47.tar.gz brdo-d8f08eb76eff46cb44354424d53f68b19d6dca47.tar.bz2 |
Issue #1204784 by bdgreen, Kevin Morse, valthebald, kiamlaluno, droplet: Fix code comment in drupal_retrieve_form
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 8ae8065a2..8ca048a90 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -727,8 +727,9 @@ function drupal_retrieve_form($form_id, &$form_state) { // 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 // from cache on a different path (such as 'system/ajax'). See - // form_get_cache(). - // $menu_get_item() is not available during installation. + // form_get_cache(). Don't do this in maintenance mode as Drupal may not be + // 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')) { $item = menu_get_item(); if (!empty($item['include_file'])) { |