All pastes #966668 Raw Edit

Someone

public php v1 · immutable
·published 2008-04-01 21:58 UTC
rendered paste body
    // 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) {      $blocks['official_latest_'. $term->tid]['info'] = t("Photos official (latest @name)", array('@name' => $term->name));    }