annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/block_configure.twig @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 /**
|
Chris@0
|
2 * Implements hook_block_configure().
|
Chris@0
|
3 */
|
Chris@0
|
4 function {{ machine_name }}_block_configure($delta = '') {
|
Chris@0
|
5 // This example comes from node.module.
|
Chris@0
|
6 $form = array();
|
Chris@0
|
7 if ($delta == 'recent') {
|
Chris@0
|
8 $form['node_recent_block_count'] = array(
|
Chris@0
|
9 '#type' => 'select',
|
Chris@0
|
10 '#title' => t('Number of recent content items to display'),
|
Chris@0
|
11 '#default_value' => variable_get('node_recent_block_count', 10),
|
Chris@0
|
12 '#options' => drupal_map_assoc(array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 30)),
|
Chris@0
|
13 );
|
Chris@0
|
14 }
|
Chris@0
|
15 return $form;
|
Chris@0
|
16 }
|