All pastes #966654 Raw Edit

Someone

public php v1 · immutable
·published 2008-04-01 21:53 UTC
rendered paste body
    // Dynamic block deltas    if (strstr($delta, 'official_latest_')) {      // Get gallery vocabularies and generate a latest block for each one      $ovid = variable_get('photo_gallery_official_vocabulary', 0);      $terms = taxonomy_get_tree($ovid);      foreach ($terms as $term) {        if ($delta == 'official_latest_'. $term->tid) {          $block['subject'] = t("Latest @name", array('@name' => $term->name));          $block['content'] = theme('photo_gallery_block', 'photos_official', array($term->tid), 'photos_official', array($term->tid), variable_get('photo_gallery_'. $delta .'_preset', 'preview_crop'));          break;        }      }    }