public function views_handler_field_profile_date::options_form in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/profile/views_handler_field_profile_date.inc \views_handler_field_profile_date::options_form()
- 6.2 modules/profile/views_handler_field_profile_date.inc \views_handler_field_profile_date::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field_date::options_form
File
- modules/
profile/ views_handler_field_profile_date.inc, line 21 - Definition of views_handler_field_profile_date.
Class
- views_handler_field_profile_date
- Field handler display a profile date.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// we can't do "time ago" so remove it from the form.
unset($form['date_format']['#options']['time ago']);
}