function google_appliance_block_save in Google Search Appliance 5
Same name and namespace in other branches
- 6.2 google_appliance.module \google_appliance_block_save()
File
- ./
google_appliance.module, line 504 - GSA integration
Code
function google_appliance_block_save($form_id, $form_values) {
$var_name = $form_values['module'] . '-' . $form_values['delta'];
$block_settings = google_appliance_blocksettings_get();
if (!isset($form_values['google_appliance']['hide'])) {
unset($block_settings[$var_name]);
}
else {
$block_settings[$var_name] = $form_values['google_appliance']['hide'];
}
google_appliance_blocksettings_set($block_settings);
}