You are here

function hook_skinr_skin_defaults_alter in Skinr 7.2

Alter the default skin configuration objects.

Parameters

$default_skins: An array of skin configuration objects from code.

Related topics

1 function implements hook_skinr_skin_defaults_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

skinr_context_skinr_skin_defaults_alter in skinr_context/skinr_context.module
Implements hook_skinr_skin_defaults_alter().
2 invocations of hook_skinr_skin_defaults_alter()
skinr_skin_defaults_import in ./skinr.module
Imports default skin confiuration objects from code into database.
_skinr_skin_get_defaults in ./skinr.module
Returns all default skin configuration objects.

File

./skinr.api.php, line 494
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_skinr_skin_defaults_alter(&$default_skins) {

  // Exclude a specific skin fromt he site.
  unset($default_skins['501ff0e3-dc03-0944-9910-3a788f38097b']);

  // Disable another.
  $default_skins['7cb51cbf-436d-b1d4-3105-f3cd4db28955']['status'] = 0;
}