Index: sections.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/sections/sections.module,v
retrieving revision 1.21.2.32
diff -u -p -r1.21.2.32 sections.module
--- sections.module	22 Aug 2010 20:17:11 -0000	1.21.2.32
+++ sections.module	26 Aug 2010 14:32:29 -0000
@@ -94,11 +94,24 @@ function sections_menu() {
 }
 
 /**
+ * Implementation of hook_content_extra_fields()
+ */
+function sections_content_extra_fields($type_name) {
+  return array(
+    'sections' => array(
+      'label' => t('Theme configuration'),
+      'description' => t('This setting allows you to create a section per node.'),
+      'weight' => 50,
+    ),
+  );
+}
+
+/**
  * Implementation of hook_form_alter().
  */
 function sections_form_alter(&$form, $form_state, $form_id) {
   // Add theme selection option to node forms.
-  if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] .'_node_form' == $form_id && user_access('assign node theme')) {
+  if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] .'_node_form' == $form_id) {
     $node = $form['#node'];
     $form['sections'] = array(
       '#type' => 'fieldset',
@@ -106,8 +119,8 @@ function sections_form_alter(&$form, $fo
       '#collapsible' => TRUE,
       '#collapsed' => !$node->sections['theme'],
       '#tree' => TRUE,
-      '#weight' => 30,
-      '#description' => t('This setting allows you to create a section per node. A node section will get the highest weight and take precedence about all other inheriting sections.')
+      '#description' => t('This setting allows you to create a section per node. A node section will get the highest weight and take precedence about all other inheriting sections.'),
+      '#access' => user_access('assign node theme'),
     );
     $form['sections']['theme'] = array(
       '#type' => 'select',
@@ -116,6 +129,10 @@ function sections_form_alter(&$form, $fo
       '#options' => _sections_theme_select(),
       '#description' => t('Select the theme you want to use for this node. Disabled themes are not used until they are enabled on <a href="@url">themes</a> page.', array('@url' => url('admin/build/themes')))
     );
+
+    if (!module_exists('content')) {
+      $form['sections']['#weight'] = 50;
+    }
   }
 
   // Disable core Administration theme.
