You are here

function lingotek_remove_checkboxes in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.4 lingotek.page.inc \lingotek_remove_checkboxes()
  2. 7.5 lingotek.page.inc \lingotek_remove_checkboxes()
  3. 7.6 lingotek.page.inc \lingotek_remove_checkboxes()
1 string reference to 'lingotek_remove_checkboxes'
lingotek_download_translations_form in ./lingotek.page.inc
Download Translations Form.

File

./lingotek.page.inc, line 166
Lingotek Tab for Nodes

Code

function lingotek_remove_checkboxes($form_element) {
  foreach ($form_element['#options'] as $locale => $data) {
    if (isset($data['#attributes']['class']) && in_array('no-checkbox-row', $data['#attributes']['class'])) {
      unset($form_element[$locale]['#theme']);
    }
  }
  return $form_element;
}