You are here

function simplify_form_block_form_alter in Simplify 8

Implements hook_form_FORM_ID_alter() for block_form().

Overrides the block "configure" page.

File

./simplify.module, line 304
Hooks implemented by the simplify module.

Code

function simplify_form_block_form_alter(&$form, FormStateInterface $form_state, $form_id) {

  // Get array of fields to hide.
  $fields = _simplify_get_config_value('simplify_blocks_global');

  // Hide fields.
  simplify_hide_fields($fields, $form);
}