[development] Alternative to drupal_bootstrap when we want to access Drupal data from other application?

Ryan Chan ryanchan404 at gmail.com
Sun Feb 13 04:25:05 UTC 2011


On Sun, Feb 13, 2011 at 11:10 AM, Gordon Heydon <gordon at heydon.com.au> wrote:
> Hi,
>
> You could just bootstrap the database, but not all the modules will be loaded, and you may not get back the same results, as you would in drupal.
>
> What the other problem could be that it is doing a lot in hook_init() which you could skip by defining MAINTENANCE_MODE as update.
>
> see http://api.drupalecommerce.org/api/drupal/drupal--includes--common.inc/function/_drupal_bootstrap_full/6.x
>
> Gordon.

If I just bootstrap the database, error will be shown:

>> Call to undefined function node_load()


Also, the MAINTENANCE_MODE tricks seem help, will do more analysis later on.

Thanks.


More information about the development mailing list