You are here

function views_handler_field_heartbeat_buttons::construct in Heartbeat 7

Construct a new field handler.

Overrides views_handler_field::construct

File

views/views_handler_field_heartbeat_buttons.inc, line 7

Class

views_handler_field_heartbeat_buttons
Field handler to present message buttons for the activity.

Code

function construct() {
  parent::construct();

  // Add the javascript and css files.
  drupal_add_js(drupal_get_path('module', 'heartbeat') . '/js/heartbeat.js');
  if (variable_get('heartbeat_include_default_style', 1)) {
    drupal_add_css(drupal_get_path('module', 'heartbeat') . '/css/heartbeat.css');
  }
  $this->additional_fields['uaid'] = 'uaid';
}