function skinr_context_group_load in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr_context/skinr_context.module \skinr_context_group_load()
Load a skin settings group object from the database.
Parameters
$gid: The skin settings group ID.
Return value
A fully-populated skin settings group object.
13 calls to skinr_context_group_load()
- SkinrContextApiTestCase::testSkinrContextGroupDefaults in skinr_context/
tests/ skinr_context.test - Test default skin settings groups (in code).
- SkinrContextApiTestCase::testSkinrContextGroupHooks in skinr_context/
tests/ skinr_context.test - Test hook invocations for CRUD operations on skin settings groups.
- SkinrContextApiTestCase::testSkinrContextGroupLoadSave in skinr_context/
tests/ skinr_context.test - Test skinr_skin_save() against invalid entries.
- SkinrContextUIAdminTestCase::testGroupSkinImportExport in skinr_context/
tests/ skinr_context_ui.test - Tests skin configuration and group import and export forms.
- skinr_context_enable in skinr_context/
skinr_context.install - Implements hook_enable().
File
- skinr_context/
skinr_context.module, line 184 - Provides Skinr integration with Context.
Code
function skinr_context_group_load($gid = NULL) {
$gids = isset($gid) ? array(
$gid,
) : array();
$group = skinr_context_group_load_multiple($gids);
return $group ? reset($group) : FALSE;
}