function profile_field_features_export_options in Features 6
Implementation of hook_features_export_options().
File
- includes/
features.profile.inc, line 32
Code
function profile_field_features_export_options() {
$fields = array();
// Query DB directly instead of going through a Profile module function as
// the Profile module doesn't provide a good function for this purpose.
$db_result = db_query('SELECT name, title FROM {profile_fields}');
while ($field = db_fetch_object($db_result)) {
$fields[$field->name] = $field->title;
}
return $fields;
}