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

Drupal example source code file (views_plugin_row_search_view.inc)

This example Drupal source code file (views_plugin_row_search_view.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

array, extends, form, function, options, php, render, return, row, theme, title, true, type, views_plugin_row

The views_plugin_row_search_view.inc Drupal example source code

// $Id: views_plugin_row_search_view.inc,v 2009/11/02 22:01:26 merlinofchaos Exp $
 * @file
 * Contains the search row style plugin.

 * Plugin which performs a node_view on the resulting object.
class views_plugin_row_search_view extends views_plugin_row {
  function option_definition() {
    $options = parent::option_definition();

    $options['score'] = array('default' => TRUE);

    return $options;

  function options_form(&$form, &$form_state) {
    $form['score'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display score'),
      '#default_value' => $this->options['score'],

   * Override the behavior of the render() function.
  function render($row) {
    return theme($this->theme_functions(),
        'view' => $this->view,
        'options' => $this->options,
        'row' => $row

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal views_plugin_row_search_view.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.