function skinr_skin_uuid_to_sid in Skinr 8.2
Same name and namespace in other branches
- 7.2 skinr.module \skinr_skin_uuid_to_sid()
Get skin configuration IDs.
6 calls to skinr_skin_uuid_to_sid()
- 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.
- skinr_skin_load_by_uuid in ./
skinr.module - Load a skin configuration object from the database using UUID.
2 string references to 'skinr_skin_uuid_to_sid'
- skinr_skin_import in ./
skinr.module - Import a skin configuration object as defined in skinr_skin_defaults().
- skinr_skin_revert in ./
skinr.module - Revert a skin configuration object that's stored in code to its default state.
File
- ./
skinr.module, line 681 - Handles core Skinr functionality.
Code
function skinr_skin_uuid_to_sid($uuid) {
$sids =& drupal_static(__FUNCTION__, array());
if (!isset($sids[$uuid])) {
$sids[$uuid] = db_query("SELECT sid FROM {skinr_skins} WHERE uuid = :uuid", array(
':uuid' => $uuid,
))
->fetchField();
}
return $sids[$uuid];
}