You are here

views_handler_field_block_theme.inc in Views Hacks 7

File

views_block/handlers/views_handler_field_block_theme.inc
View source
<?php

class views_handler_field_block_theme extends views_handler_field {
  function render($values) {
    $themes = list_themes();
    if (isset($themes[$values->{$this->field_alias}])) {
      return $themes[$values->{$this->field_alias}]->info['name'];
    }
    return t('- None -');
  }

}