You are here

function skinr_context_skinr_skin_load in Skinr 7.2

Implements hook_skinr_skin_load().

File

skinr_context/skinr_context.module, line 639
Provides Skinr integration with Context.

Code

function skinr_context_skinr_skin_load($skin) {
  $query = db_select('skinr_group_skins', 'gs');
  $query
    ->fields('gs', array(
    'gid',
  ));
  $query
    ->condition('sid', $skin->sid);
  $skin->gid = $query
    ->execute()
    ->fetchField();
}