function skinr_skin_load_by_uuid in Skinr 8.2
Same name and namespace in other branches
- 7.2 skinr.module \skinr_skin_load_by_uuid()
Load a skin configuration object from the database using UUID.
Parameters
$uuid: The UUID of the skin configuration to load.
Return value
A fully-populated skin configuration object.
10 calls to skinr_skin_load_by_uuid()
- SkinrApiTest::_testSkinrSkinDefaults in src/
Tests/ SkinrApiTest.php - Test default skin configurations (in code).
- SkinrApiTest::_testSkinrSkinLoadSave in src/
Tests/ SkinrApiTest.php - Test skinr_skin_save() against invalid entries.
- SkinrApiTestCase::testSkinrSkinDefaults in src/
Tests/ skinr.test - Test default skin configurations (in code).
- SkinrApiTestCase::testSkinrSkinLoadSave in src/
Tests/ skinr.test - Test skinr_skin_save() against invalid entries.
- SkinrContextApiTestCase::testSkinrContextGroupDefaults in skinr_context/
tests/ skinr_context.test - Test default skin settings groups (in code).
File
- ./
skinr.module, line 717 - Handles core Skinr functionality.
Code
function skinr_skin_load_by_uuid($uuid) {
if (!($sid = skinr_skin_uuid_to_sid($uuid))) {
return FALSE;
}
// Run this through skinr_skin_load_multiple() to preserve caching.
$skin = entity_load_multiple('skin', array(
$sid,
));
return $skin ? reset($skin) : FALSE;
}