function drupagram_views_handler_field_likes::options_form in Drupagram 6
Same name and namespace in other branches
- 7 drupagram_views_field_handlers.inc \drupagram_views_handler_field_likes::options_form()
File
- views/
drupagram_views_handler_field_likes.inc, line 23 - Views handler for field likes
Class
- drupagram_views_handler_field_likes
- Field handler to show data of serialized fields.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['format'] = array(
'#type' => 'select',
'#title' => t('Display format'),
'#description' => t('How should the serialized data be displayed. You can choose a custom array/object key or a print_r on the full output.'),
'#options' => array(
'unserialized' => t('Full data'),
'key' => t('A certain key'),
),
'#default_value' => $this->options['format'],
);
$form['key'] = array(
'#type' => 'select',
'#title' => t('Which key should be displayed'),
'#options' => array(
'count' => t('Likes count'),
'data' => t('Likes detail'),
),
'#default_value' => $this->options['key'],
'#dependency' => array(
'edit-options-format' => array(
'key',
),
),
);
}