You are here

views_handler_field_fontyourface_provider.inc in @font-your-face 7.2

Views handler.

File

modules/fontyourface_ui/views/views_handler_field_fontyourface_provider.inc
View source
<?php

/**
 * @file
 * Views handler.
 */

/**
 * Field handler to provide simple renderer that allows linking to a font.
 */
class views_handler_field_fontyourface_provider extends views_handler_field {
  function render($values) {
    $info_function = $values->{$this->field_alias} . '_fontyourface_info';
    if (function_exists($info_function)) {
      $provider = $info_function();
      return check_plain($provider['name']);
    }

    // if
    return $values->{$this->field_alias};
  }

}

// views_handler_field_fontyourface_provider

Classes

Namesort descending Description
views_handler_field_fontyourface_provider Field handler to provide simple renderer that allows linking to a font.