You are here

function i18n_boxes_form_alter in Boxes translation 6

Same name and namespace in other branches
  1. 7 i18n_boxes.module \i18n_boxes_form_alter()

Implementation of hook_form_alter().

File

./i18n_boxes.module, line 36

Code

function i18n_boxes_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'block_admin_configure' || $form_id == 'block_box_form' || $form_id == 'block_add_block_form') {

    // Hide the Multilingual fieldset from i18nblocks to avoid confusion.
    if (module_exists('i18nblocks')) {
      $form['i18n']['#access'] = FALSE;
    }
  }
}