function skinr_skin_save in Skinr 8.2
Same name and namespace in other branches
- 7.2 skinr.module \skinr_skin_save()
Save a skin object.
Parameters
$skin: A skin object.
Return value
TRUE on success, FALSE on failure.
22 calls to skinr_skin_save()
- SkinrApiTest::_testSkinrSkinDefaults in src/
Tests/ SkinrApiTest.php - Test default skin configurations (in code).
- SkinrApiTest::_testSkinrSkinLoadSave in src/
Tests/ SkinrApiTest.php - Test skinr_skin_save() against invalid entries.
- SkinrApiTestCase::testSkinrImplementsCache in src/
Tests/ skinr.test - Tests skinr_implements() caching and auto-loading.
- SkinrApiTestCase::testSkinrSkinDefaults in src/
Tests/ skinr.test - Test default skin configurations (in code).
- SkinrApiTestCase::testSkinrSkinHooks in src/
Tests/ skinr.test - Test hook invocations for CRUD operations on skin configurations.
File
- ./
skinr.module, line 669 - Handles core Skinr functionality.
Code
function skinr_skin_save(Skin &$skin) {
// Make sure we're getting valid data.
if (!skinr_skin_validate($skin)) {
return FALSE;
}
return $skin
->save();
}