function ctools_language_context_convert_list

Provide a list of sub-keywords.

This is used to provide keywords from the context for use in a content type, pane, etc.

1 string reference to 'ctools_language_context_convert_list'
language.inc in plugins/contexts/language.inc
Ctools context type plugin to hold the current language context.

File

plugins/contexts/language.inc, line 98

Code

function ctools_language_context_convert_list() {
    $context = new stdClass();
    $context->data = $GLOBALS['language'];
    return array(
        'language' => t('Langcode. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'language'),
        )),
        'name' => t('Name. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'name'),
        )),
        'native' => t('Native name of the language. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'native'),
        )),
        'direction' => t('Text direction 0=LRT, 1=RTL. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'direction'),
        )),
        'enabled' => t('Status. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'enabled'),
        )),
        'plurals' => t('Number of plural forms. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'plurals'),
        )),
        'formula' => t('Plural formula. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'formula'),
        )),
        'domain' => t('Domain prefix. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'domain'),
        )),
        'prefix' => t('Url prefix . E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'prefix'),
        )),
        'weight' => t('The weight. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'weight'),
        )),
        'javascript' => t('Key of the javascript file with the translations. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'javascript'),
        )),
        'provider' => t('Negotiation method that defined the language. E.g. !example', array(
            '!example' => ctools_language_context_convert($context, 'provider'),
        )),
    );
}