You are here

function skinr_skin_load_by_uuid in Skinr 7.2

Same name and namespace in other branches
  1. 8.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.

9 calls to skinr_skin_load_by_uuid()
SkinrApiTestCase::testSkinrSkinDefaults in tests/skinr.test
Test default skin configurations (in code).
SkinrApiTestCase::testSkinrSkinLoadSave in 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).
SkinrContextUIAdminTestCase::testGroupSkinImportExport in skinr_context/tests/skinr_context_ui.test
Tests skin configuration and group import and export forms.
SkinrContextUIAdminTestCase::testSkinListingWithGroups in skinr_context/tests/skinr_context_ui.test
Tests skin configuration listing functionality.

... See full list

File

./skinr.module, line 777
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 = skinr_skin_load_multiple(array(
    $sid,
  ));
  return $skin ? reset($skin) : FALSE;
}