Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/handlers/views_handler_area_view.inc | ||
---|---|---|
12 | 12 |
*/ |
13 | 13 |
class views_handler_area_view extends views_handler_area { |
14 | 14 |
|
15 |
function option_definition() { |
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function option_definition() { |
|
16 | 19 |
$options = parent::option_definition(); |
17 | 20 |
|
18 | 21 |
$options['view_to_insert'] = array('default' => ''); |
... | ... | |
21 | 24 |
} |
22 | 25 |
|
23 | 26 |
/** |
24 |
* Default options form that provides the label widget that all fields |
|
25 |
* should have. |
|
27 |
* Default options form; provides the label widget all fields should have. |
|
26 | 28 |
*/ |
27 |
function options_form(&$form, &$form_state) { |
|
29 |
public function options_form(&$form, &$form_state) {
|
|
28 | 30 |
parent::options_form($form, $form_state); |
29 | 31 |
|
30 | 32 |
$view_display = $this->view->name . ':' . $this->view->current_display; |
... | ... | |
48 | 50 |
} |
49 | 51 |
|
50 | 52 |
/** |
51 |
* Render the area |
|
53 |
* Render the area.
|
|
52 | 54 |
*/ |
53 |
function render($empty = FALSE) { |
|
55 |
public function render($empty = FALSE) {
|
|
54 | 56 |
if ($view = $this->loadView()) { |
55 | 57 |
if (!empty($this->options['inherit_arguments']) && !empty($this->view->args)) { |
56 | 58 |
return $view->preview(NULL, $this->view->args); |
Formats disponibles : Unified diff
Weekly update of contrib modules