You are here

function i18n_node_get_lang in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_node_get_lang()
  2. 5 i18n.module \i18n_node_get_lang()
  3. 5.2 i18n.module \i18n_node_get_lang()
  4. 7 i18n_node/i18n_node.module \i18n_node_get_lang()

Get node language.

1 call to i18n_node_get_lang()
_i18n_init_mode in ./i18n.module
Initialize selection mode

File

./i18n.module, line 343
Internationalization (i18n) module.

Code

function i18n_node_get_lang($nid, $default = '') {
  $lang = db_result(db_query('SELECT language FROM {node} WHERE nid = %d', $nid));
  return $lang ? $lang : $default;
}