7.x language.inc language_types_disable($types)

Disables the given language types.

Parameters

$types: An array of language types.

Related topics

File

includes/language.inc, line 166
Language Negotiation API.

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);
}