2

how to pass a variable from the front page to an external loaded page?

http://drupal.org

Hi

i have a front-page.tpl file that load external php files according to a click on some links.

it works great but one this: it is a multi language site. if i print $language->language on the front page it does change when i switch language. but on the loaded page it is always give me the same language.

so i need to pass the language variable to the external loaded page.

at the top of the external loaded page i have this:

//set the working directory to your drupal root
chdir('/');

//require the bootstrap include
require_once  '/includes/bootstrap.inc';

//load drupal
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

i thought that will give me access to the language variable cause with it i do query the database.

any idea?

Read »
Created by addision 1 year 22 weeks ago
Category: Tutorials   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for how to pass a variable from the front page to an external loaded page?

Recent comments