The code in one of the code blocks doesn't parse right. There are missing single quotes.

@see the code block toward the end of https://api.drupal.org/api/drupal/core!includes!common.inc/function/drup...

foreach ($regions as $region) {
  drupal_attach_tabledrag('my-module-table', array(
    'action' => 'order',
    'relationship' => sibling',
    'group' => 'my-elements-weight',
    'subgroup' => my-elements-weight-' . $region,
  ));
}
CommentFileSizeAuthor
quick_doc_fix.patch595 bytesneclimdul

Comments

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Doh! Good catch, thanks!

xjm’s picture

Status: Reviewed & tested by the community » Fixed

This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x. Thanks!

  • xjm committed 251f847 on 8.0.x
    Issue #2514092 by neclimdul: Fix typo in drupal_attach_tabledrag
    

Status: Fixed » Closed (fixed)

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