function user_badges_block_save in User Badges 7.3
Same name and namespace in other branches
- 6.2 user_badges.module \user_badges_block_save()
- 6 user_badges.module \user_badges_block_save()
- 7 user_badges.module \user_badges_block_save()
- 7.2 user_badges.module \user_badges_block_save()
Implements hook_block_save().
File
- ./
user_badges.module, line 1472 - @brief User Badges module file
Code
function user_badges_block_save($delta = 0, $edit = array()) {
switch ($delta) {
case 'current_node':
variable_set('user_badges_current_node_types', array_filter($edit['types']));
drupal_set_message(t('Configuration saved.'));
return;
case 'my_badges':
variable_set('user_badges_my_badges_limit', $edit['limit']);
drupal_set_message(t('Configuration saved.'));
return;
}
}