function user_badges_block_configure in User Badges 6.2
Same name and namespace in other branches
- 6 user_badges.module \user_badges_block_configure()
- 7 user_badges.module \user_badges_block_configure()
- 7.2 user_badges.module \user_badges_block_configure()
- 7.3 user_badges.module \user_badges_block_configure()
Function for user_badges_block(op = 'configure').
1 call to user_badges_block_configure()
- user_badges_block in ./
user_badges.module - Implements hook_block();
File
- ./
user_badges.module, line 1355 - @brief User Badges module file
Code
function user_badges_block_configure($delta = 0) {
$form = array();
switch ($delta) {
case 'current_node':
$form['types'] = array(
'#type' => 'checkboxes',
'#title' => t('Show on these content types'),
'#default_value' => variable_get('user_badges_current_node_types', array()),
'#options' => node_get_types('names'),
'#attributes' => array(
'class' => 'container-inline',
),
);
break;
}
return $form;
}