You are here

function globallink_delete_locale_mapping in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.7 globallink_locale_mapping.inc \globallink_delete_locale_mapping()
  2. 7.6 globallink_locale_mapping.inc \globallink_delete_locale_mapping()

Deletes locale mapping.

Parameters

string $locale_code: The code for the locale to delete.

1 call to globallink_delete_locale_mapping()
globallink_locale_submit in ./globallink_locale_mapping.inc
Handles submission of globallink_locale form.

File

./globallink_locale_mapping.inc, line 267
globallink_locale_mapping.inc is a file that contains most functions needed on the Locale Mapping UI.

Code

function globallink_delete_locale_mapping($locale_code) {
  db_update('globallink_locale')
    ->fields(array(
    'drupal_locale_code' => NULL,
  ))
    ->condition('locale_code', $locale_code, '=')
    ->execute();
}