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