| 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 |
}
|