function _language_sections_context in Language Sections 6.2
Same name and namespace in other branches
- 7.2 language_sections.module \_language_sections_context()
3 calls to _language_sections_context()
File
- ./
language_sections.module, line 196
Code
function _language_sections_context($topic = FALSE) {
$context = array(
// Elements of $language that we use as possible triggers.
'elements' => array(
'language',
'name',
'prefix',
),
// "Special" triggers and descriptions.
'specials' => array(
'all' => t('all languages'),
'other' => t('other languages'),
),
'match_types' => array(
'current_language' => 1,
'all_languages' => 2,
'other_languages' => 3,
),
);
return $topic ? $context[$topic] : $context;
}