function fusion_apply_skin_load_unchanged in Fusion Accelerator 7
Same name and namespace in other branches
- 7.2 fusion_apply/fusion_apply.module \fusion_apply_skin_load_unchanged()
Load an uncached version of a skin configuration object.
Parameters
$sid: The skin configuration ID.
Return value
A fully-populated skin configuration object.
4 calls to fusion_apply_skin_load_unchanged()
- FusionApplyApiTestCase::testFusionApplySkinHooks in fusion_apply/
tests/ fusion_apply.test - Test hook invocations for CRUD operations on skin configurations.
- FusionApplyUIAdminTestCase::testSkinDefaultStatus in fusion_apply/
tests/ fusion_apply_ui.test - Tests default status of skins.
- fusion_apply_skin_save in fusion_apply/
fusion_apply.module - Save a skin object.
- fusion_apply_ui_skin_status_set in fusion_apply/
fusion_apply_ui.admin.inc - Menu callback; Updates the skin configuration's status.
File
- fusion_apply/
fusion_apply.module, line 582 - Handles core Fusion Apply functionality.
Code
function fusion_apply_skin_load_unchanged($sid) {
// Load an uncached version of the skin configuration object.
$skin = db_query("SELECT * FROM {fusion_apply_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('fusion_apply_skin_load', $skin);
return $skin;
}