--- simple_access.module.OLD 2009-08-14 13:51:00.000000000 +1000 +++ simple_access.module 2009-08-14 14:25:00.000000000 +1000 @@ -432,6 +432,7 @@ function simple_access_form($node, $admi '#attributes' => array( 'class' => 'simple-access-settings', ), + '#weight' => (module_exists('content') && isset($form['type'])) ? content_extra_field_weight($form['type']['#value'], 'sa') : 20, ); if (!empty($profiles)) { $form['sa']['simple_access_profiles'] = array( @@ -991,4 +992,17 @@ function simple_access_profile_disable($ */ function simple_access_views_api() { return array('api' => 2.0); -} \ No newline at end of file +} + +/** + * Implementation of hook_content_extra_fields(). + */ +function simple_access_content_extra_fields($type_name) { + $fields['simple_access'] = array( + 'label' => t('Simple Access'), + 'description' => t('Simple Access module form.'), + 'weight' => 20, + ); + + return $fields; +}