You are here

function _shurly_language_stub in ShURLy 6

Same name and namespace in other branches
  1. 7 shurly.module \_shurly_language_stub()

Return default language object which will avoid redirects and subdomains

This is necessary because we always want our short URLs to be the first item in the path, even if we've got another language enabled

2 calls to _shurly_language_stub()
_sl in ./shurly.module
Internal function to call l() without language prefixing or subdomain rewrites
_surl in ./shurly.module
Internal function to call url() without language prefixing or subdomain rewrites

File

./shurly.module, line 951
description http://www.youtube.com/watch?v=Qo7qoonzTCE

Code

function _shurly_language_stub() {
  static $language;
  if (!isset($language)) {
    $language = language_default();
    $language->prefix = '';
    $language->domain = '';
  }
  return $language;
}