function skinr_context_group_revert in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr_context/skinr_context.module \skinr_context_group_revert()
Revert a skin settings group object that's stored in code to its default state.
Parameters
$gid: The skin settings group ID.
2 calls to skinr_context_group_revert()
- SkinrContextApiTestCase::testSkinrContextGroupDefaults in skinr_context/
tests/ skinr_context.test - Test default skin settings groups (in code).
- skinr_context_ui_revert_confirm_submit in skinr_context/
skinr_context_ui.admin.inc - Form submission handler for skinr_context_ui_revert_confirm().
File
- skinr_context/
skinr_context.module, line 364 - Provides Skinr integration with Context.
Code
function skinr_context_group_revert($gid) {
$default_groups = _skinr_context_group_get_defaults();
if (!isset($default_groups[$gid])) {
return FALSE;
}
return skinr_context_group_import($default_groups[$gid], TRUE);
}