function activity_comments_handler_field_comments::options_form in Activity 6.2
Same name and namespace in other branches
- 7 activity_comments/views/activity_comments.views.inc \activity_comments_handler_field_comments::options_form()
File
- activity_comments/
views/ activity_comments_handler_field_comments.inc, line 35
Class
- activity_comments_handler_field_comments
- Activity comments comment form field handler.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['order'] = array(
'#type' => 'select',
'#title' => t('Order comments by'),
'#default_value' => $this->options['order'],
'#options' => array(
'ASC' => t('Created time - ascending'),
'DESC' => t('Created time - descending'),
),
);
$form['limit'] = array(
'#type' => 'textfield',
'#title' => t('Comments number limit'),
'#size' => 5,
'#default_value' => isset($this->options['limit']) ? $this->options['limit'] : 2,
);
}