You are here

function skinr_skin_sid_to_uuid in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 skinr.module \skinr_skin_sid_to_uuid()

Get skin configuration IDs.

2 calls to skinr_skin_sid_to_uuid()
SkinrApiTestCase::testSkinrSkinLoadSave in tests/skinr.test
Test skinr_skin_save() against invalid entries.
skinr_skin_revert in ./skinr.module
Revert a skin configuration object that's stored in code to its default state.
2 string references to 'skinr_skin_sid_to_uuid'
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 756
Handles core Skinr functionality.

Code

function skinr_skin_sid_to_uuid($sid) {
  $uuids =& drupal_static(__FUNCTION__, array());
  if (!isset($uuids[$sid])) {
    $uuids[$sid] = db_query("SELECT uuid FROM {skinr_skins} WHERE sid = :sid", array(
      ':sid' => $sid,
    ))
      ->fetchField();
  }
  return $uuids[$sid];
}