You are here

function skinr_skin_load in Skinr 7.2

Load a skin configuration object from the database.

Parameters

$sid: The skin configuration ID.

Return value

A fully-populated skin configuration object.

6 calls to skinr_skin_load()
SkinrApiTestCase::testSkinrSkinHooks in tests/skinr.test
Test hook invocations for CRUD operations on skin configurations.
SkinrApiTestCase::testSkinrSkinLoadSave in tests/skinr.test
Test skinr_skin_save() against invalid entries.
SkinrUIAdminTestCase::testSkinDefaultStatus in tests/skinr_ui.test
Tests default status of skins.
skinr_context_ui_form_submit in skinr_context/skinr_context_ui.module
Form submission handler for skinr_context_form_alter().
skinr_ui_form_submit in ./skinr_ui.edit.inc
Form submission handler for skinr_ui_form_alter().

... See full list

File

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

Code

function skinr_skin_load($sid = NULL) {
  $sids = isset($sid) ? array(
    $sid,
  ) : array();
  $skin = skinr_skin_load_multiple($sids);
  return $skin ? reset($skin) : FALSE;
}