Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/views/webform.views.inc
6 6
 */
7 7

  
8 8
/**
9
 *
9
 * Implements hook_views_data().
10 10
 */
11 11
function webform_views_data() {
12 12
  // Webform table definitions.
......
527 527
      ),
528 528
    ),
529 529
  );
530

  
531
  return $plugins;
532 530
}
533 531

  
534 532
/**
......
544 542
      ($node = node_load($args[0])) && isset($node->webform['components'])) {
545 543
    // This is a view/display that needs its fields expanded. It contains the
546 544
    // webform_all_fields field, has a nid argument to the webform_submission
547
    // table that is a valid node.
548
    // Retrieve the display's fields and remove any fields after the 'webform_all_fields' field.
545
    // table that is a valid node. Retrieve the display's fields and remove any
546
    // fields after the 'webform_all_fields' field.
549 547
    $fields = $view->get_items('field', $display_id);
550 548
    $prototype = $fields[$all_fields_id];
551 549
    $field_index = array_flip(array_keys($fields));

Also available in: Unified diff