home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (content_handler_filter_float.inc)

This example Drupal source code file (content_handler_filter_float.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

class, content_fields, content_handler_filter_float, definition, extends, function, if, parent::construct, php, var, views_handler_filter_float, views_include_handler

The content_handler_filter_float.inc Drupal example source code

<?php
// $Id: content_handler_filter_float.inc,v 1.1.2.3 2009/04/09 00:04:23 yched Exp $

/**
 * @file
 * The subclass simply adds properties,
 * for field-specific subclasses to use if they need to.
 */

// Ensure compatibility with Views pre 2.4, where the
// views_handler_filter_float class lived in views_handler_filter_numeric.inc.
if (!class_exists('views_handler_filter_float')) {
  // Manually include the parent class.
  $definition = views_fetch_handler_data('views_handler_filter_numeric');
  views_include_handler($definition, 'handler');
}

class content_handler_filter_float extends views_handler_filter_float {
  var $content_field;

  function construct() {
    parent::construct();
    $this->content_field = content_fields($this->definition['content_field_name']);
    $this->additional_fields = $this->definition['additional fields'];
  }
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal content_handler_filter_float.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.