You are here

function skinr_skin_info_status_set in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr.module \skinr_skin_info_status_set()

Set the status of a skin. Overrides the skin plugin settings.

Parameters

$skin_info: Information about a registered skin.

$status: An array of statuses for each theme.

1 call to skinr_skin_info_status_set()
LibraryListForm::submitForm in skinr_ui/src/Form/LibraryListForm.php
Form submission handler.

File

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

Code

function skinr_skin_info_status_set($skin_info, $status) {

  // @todo Clear if default?
  \Drupal::configFactory()
    ->getEditable('skinr.status')
    ->set($skin_info['name'], $status)
    ->save();
}