When allowing "Link display" and not "View mode" in the "Overrides per node" settings on the content type form, the corresponding node form throws the following errors:

Notice: Undefined variable: options in nodeblock_form_node_form_alter() (line 263 of /home/joanne/public_html/sites/default/modules/nodeblock/nodeblock.module).
Warning: Invalid argument supplied for foreach() in form_select_options() (line 2675 of /home/joanne/public_html/includes/form.inc).

This is because the $options variable for the "Node Link Display" select box on the node form is declared in the wrong block of code in nodeblock.module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mesr01’s picture

The following patch is against dev.

mesr01’s picture

The following patch is against dev.

Johnny vd Laar’s picture

Status: Needs review » Fixed

I've committed your fix here:
http://drupalcode.org/project/nodeblock.git/commit/d290ebf

thank you!

Status: Fixed » Closed (fixed)

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