When I manage fields in content type edition I can put them in order. How could I retrieve this information to use it in a custom module. In Database there is no any column which saves weight order information of fields as they appears in "Manage fields" tab in content type edition.
$entity_type = 'node'; $field_name = 'body'; $bundle_name = 'article'; $body = field_info_instance($entity_type, $field_name, $bundle_name);
Which gives you access to numerous config/settings
$body_weight = $body['display']['default']['weight'];