function slickgrid_callback_settings in Slickgrid 7
Same name and namespace in other branches
- 6 slickgrid.callbacks.inc \slickgrid_callback_settings()
Callback function - update a view's settings
File
- includes/
slickgrid.callbacks.inc, line 58
Code
function slickgrid_callback_settings() {
global $user;
if ($user->uid) {
// do not save settings for anonymous users
slickgrid_set_settings($user->uid, $_POST['view'], $_POST['display_id'], array(
$_POST['setting'] => $_POST['value'],
));
}
}