You are here

function classified_block_configure in Classified Ads 6.3

Same name and namespace in other branches
  1. 7.3 classified.module \classified_block_configure()

Implements the D7 hook_block_configure().

1 call to classified_block_configure()
classified_block in ./classified.module
Implements hook_block().

File

./classified.module, line 642
A pure D6 classified ads module inspired by the ed_classified module.

Code

function classified_block_configure($delta) {
  if (!in_array($delta, array(
    'recent',
    'popular',
  ))) {
    $ret = NULL;
  }
  else {
    $ret = array();
    $name = $delta . '-count';
    $ret['classified-' . $name] = array(
      '#type' => 'textfield',
      '#title' => t('Number of entries'),
      '#default_value' => _classified_get($name),
      '#description' => t('Define the maximum number of ads displayed in the block. Erase for default value.'),
      '#size' => 3,
      '#maxlength' => 3,
    );
  }
  return $ret;
}