You are here

cck_select_other_handler_field.inc in CCK Select Other 6

File

views/cck_select_other_handler_field.inc
View source
<?php

/**
 * @file
 */

/**
 * Extension to the Content Field Handler class for CCK Select Other
 */
class cck_select_other_handler_field extends content_handler_field {
  function render($values) {
    $values = parent::render($values);
    $field = content_fields($this->content_field['field_name'], $values->{$this->aliases['type']});
    $options = cck_select_other_options($field);
    return isset($options[$values]) ? $options[$values] : $values;
  }

}

Classes

Namesort descending Description
cck_select_other_handler_field Extension to the Content Field Handler class for CCK Select Other