/[drupal]/contributions/modules/ad_views/ad_views_plugin_row_ad.inc
ViewVC logotype

Contents of /contributions/modules/ad_views/ad_views_plugin_row_ad.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Sep 7 00:34:41 2009 UTC (2 months, 2 weeks ago) by milesgillham
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-ALPHA5, DRUPAL-6--1-0-ALPHA4, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Revised #524454: resolved by adding Advertisement row type
1 <?php
2 // $Id:$
3 /*
4 * Implementation of ad_views_row_plugin
5 */
6
7 class ad_views_plugin_row_ad extends views_plugin_row {
8
9 function options(&$options) {
10 $options['ad_display'] = 'raw';
11 }
12
13 function options_form(&$form, &$form_state) {
14 $form['ad_display'] = array(
15 '#title' => t('Ad Display'),
16 '#desription' => t('Display method to use.'),
17 '#type' => 'radios',
18 '#default_value' => isset($this->options['ad_display']) ? $this->options['ad_display'] : 'raw',
19 '#options' => array(
20 'raw' => t('Raw'),
21 'iframe' => t('Iframe'),
22 'jquery' => t('JQuery'),
23 'javascript' => t('Javascript'),
24 'default' => t('Default')
25 )
26 );
27 }
28 }

  ViewVC Help
Powered by ViewVC 1.1.2