Issue #2056845 by StephaneQ | tstoeckler: Fixed Stale documentation in drupal_bootstrap() regarding DRUPAL_ROOT.
parent
1039d1de6d
commit
1e11b96427
|
@ -1752,8 +1752,7 @@ function drupal_anonymous_user() {
|
||||||
*
|
*
|
||||||
* In order to bootstrap Drupal from another PHP script, you can use this code:
|
* In order to bootstrap Drupal from another PHP script, you can use this code:
|
||||||
* @code
|
* @code
|
||||||
* define('DRUPAL_ROOT', '/path/to/drupal');
|
* require_once '/path/to/drupal/core/includes/bootstrap.inc';
|
||||||
* require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc';
|
|
||||||
* drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
|
* drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue