You are here

views_handler_field_block_custom.inc in Views Hacks 7

Same filename and directory in other branches
  1. 6 views_block/handlers/views_handler_field_block_custom.inc

File

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

class views_handler_field_block_custom extends views_handler_field {
  function render($values) {
    $strings = array(
      t('Show always'),
      t('Show by default'),
      t('Hide by default'),
    );
    return $strings[$values->{$this->field_alias}];
  }

}