hook_block_configure
- Versions
- 7
hook_block_configure($delta = '')
Configuration form for the block.
For a detailed usage example, see block_example.module.
Parameters
$delta Which block to return. This is a descriptive string used to identify blocks within each module and also within the theme system. The $delta for each block is defined within the array that your module returns when the hook_block_info() implementation is called.
Return value
Optionally return the configuration form.
Related topics
Code
modules/block/block.api.php, line 84
<?php
function hook_block_configure($delta = '') {
if ($delta == 'exciting') {
$form['items'] = array(
'#type' => 'select',
'#title' => t('Number of items'),
'#default_value' => variable_get('mymodule_block_items', 0),
'#options' => array('1', '2', '3'),
);
return $form;
}
}
?>Login or register to post comments 