1 layout_test.module layout_test_block_configure($delta = '', $settings = array())

Implements hook_block_configure().

File

core/modules/layout/tests/layout_test/layout_test.module, line 110
Layout test module.

Code

function layout_test_block_configure($delta = '', $settings = array()) {
  $form = array();
  if ($delta == 'foo') {
    $settings += array(
      'count' => 10,
    );
    $form['count'] = array(
      '#type' => 'select',
      '#title' => 'Foo count to display',
      '#default_value' => $settings['count'],
      '#options' => backdrop_map_assoc(array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 30)),
    );
  }
  return $form;
}