function views_handler_field_profile_date::options_form
3.x views_handler_field_profile_date.inc | views_handler_field_profile_date::options_form(&$form, &$form_state) |
2.x views_handler_field_profile_date.inc | views_handler_field_profile_date::options_form(&$form, &$form_state) |
Default options form that 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 17 - Definition of views_handler_field_profile_date.
Class
- views_handler_field_profile_date
- Field handler display a profile date
Code
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']);
}