You are here

function fusion_apply_skin_load in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 fusion_apply/fusion_apply.module \fusion_apply_skin_load()

Load a skin configuration object from the database.

Parameters

$sid: The skin configuration ID.

Return value

A fully-populated skin configuration object.

5 calls to fusion_apply_skin_load()
FusionApplyApiTestCase::testFusionApplySkinHooks in fusion_apply/tests/fusion_apply.test
Test hook invocations for CRUD operations on skin configurations.
FusionApplyApiTestCase::testFusionApplySkinLoadSave in fusion_apply/tests/fusion_apply.test
Test fusion_apply_skin_save() against invalid entries.
FusionApplyUIAdminTestCase::testSkinDefaultStatus in fusion_apply/tests/fusion_apply_ui.test
Tests default status of skins.
fusion_apply_submit_handler in fusion_apply/fusion_apply.handlers.inc
Fusion Apply submit handler.
_fusion_apply_ui_mass_update_helper in fusion_apply/fusion_apply_ui.admin.inc
Helper function for skin configuration mass updates.

File

fusion_apply/fusion_apply.module, line 498
Handles core Fusion Apply functionality.

Code

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