You are here

function views_handler_field_activity_type::options_form in CRM Core 7

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

modules/crm_core_activity/views/handlers/views_handler_field_activity_type.inc, line 23
Views support.

Class

views_handler_field_activity_type
Provides a field handler for activity_type.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['alter']['activity_create_link'] = array(
    '#type' => 'checkbox',
    '#title' => t('New Activity create link'),
    '#default_value' => $this->options['alter']['activity_create_link'],
    '#description' => t('Show type as link to create Activity of this type.'),
    '#weight' => -200,
  );
}