You are here

function tagclouds_block_configure in TagCloud 7

Implements hook_block_configure().

File

./tagclouds.module, line 565

Code

function tagclouds_block_configure($delta = '') {
  $form = array();
  $form['tags'] = array(
    '#type' => 'textfield',
    '#title' => t('Tags to show'),
    '#default_value' => variable_get('tagclouds_block_tags_' . $delta, 12),
    '#maxlength' => 3,
    '#description' => t("The number of tags to show in this block. Enter '0' to display all tags."),
  );
  $form['more_link'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display "more" link in the bottom of this block'),
    '#default_value' => variable_get('tagclouds_display_more_link_' . $delta, variable_get('tagclouds_display_more_link', TRUE)),
    '#description' => t('Display "more" link, if number of existing tags bigger than the number of tags to show.'),
  );
  return $form;
}