You are here

function skinr_context_skinr_skin_insert in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_context/skinr_context.module \skinr_context_skinr_skin_insert()

Implements hook_skinr_skin_insert().

1 call to skinr_context_skinr_skin_insert()
skinr_context_enable in skinr_context/skinr_context.install
Implements hook_enable().

File

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

Code

function skinr_context_skinr_skin_insert($skin) {
  if (!empty($skin->gid)) {
    $gs = (object) array(
      'gid' => $skin->gid,
      'sid' => $skin->sid,
    );
    drupal_write_record('skinr_group_skins', $gs);
  }
}