function classified_block_configure in Classified Ads 7.3
Same name and namespace in other branches
- 6.3 classified.module \classified_block_configure()
Implements hook_block_configure().
File
- ./
classified.module, line 731 - A pure D7 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;
}