You are here

function skinr_context_features_pipe_skinr_skin_alter in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_context/skinr_context.features.inc \skinr_context_features_pipe_skinr_skin_alter()

Implements hook_features_pipe_COMPONENT_alter().

File

skinr_context/skinr_context.features.inc, line 40
Implements features integration for Skinr Context.

Code

function skinr_context_features_pipe_skinr_skin_alter(&$pipe, $data, $export) {

  // Skin configuration objects should always include the Skin settings groups
  // they depend on.
  foreach ($data as $uuid) {
    if (($skin = skinr_skin_load_by_uuid($uuid)) && !empty($skin->gid)) {
      if ($group = skinr_context_group_load($skin->gid)) {
        $pipe['skinr_group'][] = $group->gid;
      }
    }
  }
}