Révision ed9a13f1
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/feeds/views/feeds_views_handler_field_importer_name.inc | ||
---|---|---|
5 | 5 |
* Render an importer name. |
6 | 6 |
*/ |
7 | 7 |
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
8 | 11 |
class feeds_views_handler_field_importer_name extends views_handler_field { |
9 | 12 |
|
10 | 13 |
/** |
11 | 14 |
* Overrides parent::option_definition(). |
12 | 15 |
*/ |
13 |
function option_definition() { |
|
16 |
public function option_definition() {
|
|
14 | 17 |
$options = parent::option_definition(); |
15 | 18 |
$options['link'] = array('default' => 0); |
16 | 19 |
return $options; |
... | ... | |
19 | 22 |
/** |
20 | 23 |
* Overrides parent::options_form(). |
21 | 24 |
*/ |
22 |
function options_form(&$form, &$form_state) { |
|
25 |
public function options_form(&$form, &$form_state) {
|
|
23 | 26 |
parent::options_form($form, $form_state); |
24 | 27 |
$options = array( |
25 | 28 |
0 => t('Do not link'), |
... | ... | |
38 | 41 |
/** |
39 | 42 |
* Overrides parent::render(). |
40 | 43 |
*/ |
41 |
function render($values) { |
|
44 |
public function render($values) {
|
|
42 | 45 |
try { |
43 | 46 |
$importer = feeds_importer($values->{$this->field_alias})->existing(); |
44 | 47 |
if ($this->options['link'] == 1) { |
... | ... | |
57 | 60 |
/** |
58 | 61 |
* Disallows advanced rendering. |
59 | 62 |
*/ |
60 |
function allow_advanced_render() { |
|
63 |
public function allow_advanced_render() {
|
|
61 | 64 |
return FALSE; |
62 | 65 |
} |
66 |
|
|
63 | 67 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules