You are here

function skinr_skin_load_unchanged in Skinr 7.2

Load an uncached version of a skin configuration object.

Parameters

$sid: The skin configuration ID.

Return value

A fully-populated skin configuration object.

8 calls to skinr_skin_load_unchanged()
SkinrApiTestCase::testSkinrSkinHooks in tests/skinr.test
Test hook invocations for CRUD operations on skin configurations.
SkinrContextUIAdminTestCase::testSkinListingWithGroups in skinr_context/tests/skinr_context_ui.test
Tests skin configuration listing functionality.
SkinrUIAdminTestCase::testSkinDefaultStatus in tests/skinr_ui.test
Tests default status of skins.
SkinrUIAdminTestCase::testSkinListing in tests/skinr_ui.test
Tests skin configuration listing functionality.
skinr_context_group_save in skinr_context/skinr_context.module
Save a skin group object.

... See full list

File

./skinr.module, line 869
Handles core Skinr functionality.

Code

function skinr_skin_load_unchanged($sid) {

  // Load an uncached version of the skin configuration object. Specify order to
  // ensure consistent import/export.
  $skin = db_query("SELECT sid, uuid, theme, module, element, skin, options, status FROM {skinr_skins} WHERE sid = :sid", array(
    ':sid' => $sid,
  ))
    ->fetchObject();

  // Unserialize options array.
  $skin->options = unserialize($skin->options);

  // Let modules modify the skin configuration.
  module_invoke_all('skinr_skin_load', $skin);
  return $skin;
}