Issue #1109048: Stupid typo preventing noe add form context from working.
authorEarl Miles
Thu, 21 Apr 2011 23:54:38 +0000 (16:54 -0700)
committerEarl Miles
Thu, 21 Apr 2011 23:54:38 +0000 (16:54 -0700)
plugins/contexts/node_add_form.inc

index 4111f16..5521933 100644 (file)
@@ -90,8 +90,8 @@ function ctools_context_node_add_form_settings_form($form, &$form_state) {
   $form['type'] = array(
     '#title' => t('Node type'),
     '#type' => 'select',
-    '#options' => $options,
-    '#default_value' => node_type_get_names(),
+    '#options' => node_type_get_names(),
+    '#default_value' => $conf['type'],
     '#description' => t('Select the node type for this form.'),
   );