function slickgrid_get_settings in Slickgrid 6
Same name and namespace in other branches
- 7.2 slickgrid.module \slickgrid_get_settings()
- 7 slickgrid.module \slickgrid_get_settings()
Get settings from the DB Pass in $setting to retrieve a particular setting, NULL to get akll for a UID / View
Parameters
string $uid:
string $view_name:
string $setting:
3 calls to slickgrid_get_settings()
- slickgrid_preprocess_views_view_slickgrid in ./
slickgrid.module - Preprocessor for views-view-slickgrid.tpl.php Repurpose the views result for slickgrid
- slickgrid_set_settings in ./
slickgrid.module - slickgrid_views_ui_rearrange_form_submit in ./
slickgrid.module - Additional submit handler for views_ui_rearrange_form Delete any user settings for the view which will prevent reraranged fields from displaying properly
File
- ./
slickgrid.module, line 542
Code
function slickgrid_get_settings($uid, $view_name, $setting = null) {
$settings = unserialize(db_result(db_query("SELECT settings FROM {slickgrid} WHERE uid = %d AND view_name = '%s'", $uid, $view_name)));
if ($setting) {
return $settings[$setting];
}
else {
return $settings;
}
}