public function boxes_simple::options_form in Boxes 6
Same name and namespace in other branches
- 7 plugins/boxes_simple.inc \boxes_simple::options_form()
Implementation of boxes_content::options_form().
Overrides boxes_box::options_form
File
- plugins/
boxes_simple.inc, line 20
Class
- boxes_simple
- Simple custom text box.
Code
public function options_form() {
if (filter_access($this->options['format'])) {
$form = array();
$form['body'] = array(
'#type' => 'textarea',
'#title' => t('Box body'),
'#default_value' => $this->options['body'],
'#rows' => 6,
'#description' => t('The content of the block as shown to the user.'),
);
$form['format'] = filter_form($this->options['format']);
return $form;
}
}