You are here

function i18n_boxes_form_alter in Boxes translation 7

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

Implements hook_form_alter().

File

./i18n_boxes.module, line 57
Provides a new boxes plugin for translatable blocks.

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('i18n_blocks')) {
      $form['i18n']['#access'] = FALSE;
    }
  }
}