1 block.admin.inc block_custom_block_translate($form, &$form_state, $delta, $langcode)

Menu callback function for translating a single block.

Parameters

array $form: An associative array containing the structure of a portion of the form.

array $form_state: A keyed array containing the current state of the form.

string $delta: The unique machine name of that block.

string $langcode: The language code value to translate to.

Return value

array: The configuration form.

File

core/modules/block/block.admin.inc, line 399
Admin page callbacks for the Block module.

Code

function block_custom_block_translate($form, &$form_state, $delta, $langcode) {
  $form['langcode'] = array('#type' => 'hidden', '#value' => $langcode);

  return block_admin_configure($form, $form_state, $delta);
}