Chris@0: /** Chris@0: * Implements hook_block_configure(). Chris@0: */ Chris@0: function {{ machine_name }}_block_configure($delta = '') { Chris@0: // This example comes from node.module. Chris@0: $form = array(); Chris@0: if ($delta == 'recent') { Chris@0: $form['node_recent_block_count'] = array( Chris@0: '#type' => 'select', Chris@0: '#title' => t('Number of recent content items to display'), Chris@0: '#default_value' => variable_get('node_recent_block_count', 10), Chris@0: '#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: ); Chris@0: } Chris@0: return $form; Chris@0: }