public function views_php_handler_area::option_definition in Views PHP 7
Same name and namespace in other branches
- 6 plugins/views/views_php_handler_area.inc \views_php_handler_area::option_definition()
- 7.2 plugins/views/views_php_handler_area.inc \views_php_handler_area::option_definition()
Implements views_object#option_definition().
Overrides views_handler_area::option_definition
File
- plugins/
views/ views_php_handler_area.inc, line 13
Class
- views_php_handler_area
- A handler to provide an area that is constructed by the administrator using PHP.
Code
public function option_definition() {
$options = parent::option_definition();
$options['php_output'] = array(
'default' => "<h4>Example PHP code</h4>\n<p>Time: <?php print date('H:i', time());?></p>\n",
);
return $options;
}