function commons_bw_handler_node_partial_form::options_form in Drupal Commons 7.3
Default options form that provides the label widget that all fields should have.
Overrides views_handler_area::options_form
File
- modules/
commons/ commons_bw/ includes/ views/ handlers/ commons_bw_handler_node_partial_form.inc, line 14
Class
- commons_bw_handler_node_partial_form
- Minified node creation form.
Code
function options_form(&$form, &$form_state) {
$bundles = og_get_all_group_content_bundle();
$form['bundle'] = array(
'#type' => 'select',
'#title' => t('Node type'),
'#options' => !empty($bundles['node']) ? $bundles['node'] : array(),
'#default_value' => $this->options['bundle'],
'#required' => TRUE,
);
}