1 node.module node_block_configure($delta = '', $settings = array())

Implements hook_block_configure().

File

core/modules/node/node.module, line 2125
The core module that allows content to be submitted to the site.

Code

function node_block_configure($delta = '', $settings = array()) {
  $form = array();
  if ($delta == 'recent') {
    $settings += array(
      'node_count' => 10,
    );
    $form['node_count'] = array(
      '#type' => 'select',
      '#title' => t('Number of recent content items to display'),
      '#default_value' => $settings['node_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)),
    );
  }
  if ($delta == 'syndicate') {
    $form['syndicate_settings'] = array(
      '#type' => 'radios',
      '#title' => t('Choose the linked feed'),
      '#default_value' => isset($settings['syndicate_settings']) ? $settings['syndicate_settings'] : 'promoted',
      '#options' => array(
        'promoted' => t('Always show RSS link for promoted content'),
        'page_content' => t('Show RSS link for the current page, if available'),
      ),
    );
  }
  return $form;
}