When adding form col variants with the alter hook the links don't show because they are put on #value rather than #markup.

The correct syntax for the form api should be nodeformcols.admin.inc:127

    $form['variant'] = array(
      '#type' => 'item',
      '#title' => t('Select a form variant'),
      '#markup' => theme('links', array('links' => $variant_links)),
Members fund testing for the Drupal project. Drupal Association Learn more


jamiecuthill’s picture

Status: Active » Needs review
508 bytes

Here is a patch.

asherry’s picture

Issue summary: View changes
Status: Needs review » Fixed

Too bad this is so late, but thank you.
Committed 7.x-1.x.

Status: Fixed » Closed (fixed)

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