/**
  * Defines the result for hook_views_data().
  *
  * For the Fundraiser Sustainer record entity. This allows filtering on
  * gateway response using "is null" and "is not null".
  *
  * This also adds a join on fundraiser_donation, which I copied from the
  * original Springboard Views implementation of hook_views_data for
  * the sustainers table.
  *
  * @return array
  *   Data for Views.
  */
 public function views_data()
 {
     $data = parent::views_data();
     $table = $this->info['base table'];
     // Adds support for filtering on null values.
     $data[$table]['gateway_resp']['filter']['allow empty'] = TRUE;
     // Adds a join against fundraiser_donation.
     $data[$table]['table']['join']['fundraiser_donation'] = array('left_field' => 'did', 'field' => 'did');
     return $data;
 }
Пример #2
0
 function map_from_schema_info($property_name, $schema_field_info, $property_info)
 {
     $return = parent::map_from_schema_info($property_name, $schema_field_info, $property_info);
     return $return;
 }