function language_types_disable

Disables the given language types.

Parameters

$types: An array of language types.

Related topics

File

includes/language.inc, line 166

Code

function language_types_disable($types) {
    $enabled_types = variable_get('language_types', drupal_language_types());
    foreach ($types as $type) {
        unset($enabled_types[$type]);
    }
    variable_set('language_types', $enabled_types);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.