Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
linenumberstrue
/**
 * @file
 * Definition of example_handler_custom_field
 */
 
/**
 * Provides a custom views field. 
 */
class example_handler_custom_field extends views_handler_field {
  function option_definition() {
    $options = parent::option_definition();
    return $options;
  }
 
  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
  }
 
  function query() {
    // do nothing -- to override the parent query.
  }
 
  function render($data) {
    // If the devel module is enabled, you may view all of the
    // data provided by fields previously added in your view.
    // dpm($data);
    // Insert PHP code here, or display greeting.
    $output = t("Hello World!");
    return $output;  
  }
}

 

 



Info

Other resources:

...

Filter by label (Content by label)
showLabelsfalse
max5
spacesKALA
showSpacefalse
sortmodifiedshowSpacefalse
reversetrue
typepage
cqllabel = "views" and type = "page" and space = "KALA"
labelsViews