In webform v 4.x, in file webform.api.php, line 1113 function _webform_analysis_component() there seems to be some unfinished code,
lines 1159 - 1163

  array(
    'table_header' => $header,
    'table_rows' => $rows,
    'other_data' => $other,
  );

Judging from what other components do, this should probably be

  return array(
    'table_header' => $header,
    'table_rows' => $rows,
    'other_data' => $other,
  );

Patch on current 4.x dev attached.

CommentFileSizeAuthor
webform_api_return_bug.patch483 byteshutch

Comments

  • DanChadwick committed 4858ae6 on 7.x-4.x
    Issue #2403129 by hutch: fixed bug in webform api examples
    
  • DanChadwick committed 75d6311 on 8.x-4.x
    Issue #2403129 by hutch: Fixed bug in webform api examples
    
danchadwick’s picture

Version: 7.x-4.x-dev » 8.x-4.x-dev
Status: Active » Fixed

Thanks for noticing. Committed to 7.x-4.x and 8.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

danchadwick’s picture

Version: 8.x-4.x-dev » 7.x-4.x-dev