You are here

function menu_position_menu_position_condition_language in Menu Position 7.2

Same name and namespace in other branches
  1. 7 plugins/menu_position.language.inc \menu_position_menu_position_condition_language()

Checks if the language matches the global language.

Parameters

$variables: An array containing each of the variables saved in the database necessary to evaluate this condition of the rule.

Return value

TRUE if condition applies successfully. Otherwise FALSE.

File

plugins/menu_position.language.inc, line 16
Provides the "Language" rule plugin for the Menu Position module.

Code

function menu_position_menu_position_condition_language($variables) {

  // Grab the variables stored statically in the rule.
  return $variables['language'] == $GLOBALS['language']->language ? TRUE : FALSE;
}