Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

$lbcountry = LBSystem::lbcountry();


Excerpt

Returns the current user country of LoxBerry (e.g. "at")


This is the country the user has set in the My LoxBerry widget. The country is returned in two letters lowercase, as defined in ISO 3166-1 alpha-2.

The function returns NULL, if no country was selected by the user.

Note
titleLoxBerry Compatibility

This function is available from LoxBerry V2.2. If you use that function, set this minimum version in your plugin.cfg.

Usage


Code Block
languagephp
require_once "loxberry_system.php";
 
$lbcountry = LBSystem::lbcountry();

echo "The country set by the user is $lbcountry.";