function related_blog_block_configure in Util 7
Same name and namespace in other branches
- 6.3 contribs/related_blog/related_blog.module \related_blog_block_configure()
Implements hook_block_configure().
File
- contribs/
related_blog/ related_blog.module, line 79 - Provides block to show blog of node's author.
Code
function related_blog_block_configure($delta = 0) {
$form = array();
switch ($delta) {
case 'related_blog':
$form['blog_count'] = array(
'#type' => 'radios',
'#title' => t('How many blogs to show'),
'#default_value' => variable_get('related_blog_count', variable_get('default_nodes_main', 10)),
'#options' => array(
1 => 1,
2 => 2,
3 => 3,
4 => 4,
5 => 5,
10 => 10,
),
'#attributes' => array(
'class' => array(
'container-inline',
),
),
);
break;
}
return $form;
}