function taxonomy_list_block_configure in Taxonomy List 7
Implementation of hook_block_configure().
File
- ./
taxonomy_list.module, line 969 - List all terms in a vocabulary.
Code
function taxonomy_list_block_configure($delta = '') {
// $delta is the vocabulary id.
$form = array();
$depths = array(
'0' => '1',
'1' => '2',
'2' => '3',
'3' => '4',
'4' => '5',
'all' => t('All levels'),
);
$form['taxonomy_list_block_max_depth'] = array(
'#type' => 'radios',
'#options' => $depths,
'#title' => t('Show terms to this depth'),
'#default_value' => variable_get('taxonomy_list_block_max_depth_' . $delta, 2),
);
return $form;
}