Fix for Code

  1.       $form['layer_type_' . $layer['lineage']] = array(
  2.         '#type' => 'select',
  3.         '#options' => $layer_entity_types_options,
  4.         // Unconfigured elements get the first of the available values as their
  5.         // default value.
  6.         '#default_value' => $layer['entity_type'] ? $layer['entity_type'] : array_shift(array_keys($layer_entity_types_options)),
  7.       );

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.