--- flexifield-OLD.module 2009-07-08 09:19:16.000000000 +1000 +++ flexifield.module 2009-09-03 10:51:06.000000000 +1000 @@ -97,12 +97,17 @@ function flexifield_field_settings($sOpe // The settings form for the field case 'form': $aSettingsForm = array(); + + // Get all content types except the current one (to stop a script loop) + $content_types = node_get_types('names'); + unset($content_types[$aFieldSettings['type_name']]); + $aSettingsForm['item_types'] = array( '#type' => 'checkboxes', '#title' => t('Content types that can be used as field items'), '#multiple' => TRUE, '#default_value' => is_array($aFieldSettings['item_types']) ? $aFieldSettings['item_types'] : array(), - '#options' => node_get_types('names'), + '#options' => $content_types, ); return $aSettingsForm; break; @@ -675,4 +680,4 @@ function template_preprocess_flexifield_ } } } -} \ No newline at end of file +}