function _ctools_profile_fields_options
Helper function : build the list of categories for the 'edit' form.
1 call to _ctools_profile_fields_options()
- ctools_profile_fields_content_type_edit_form in plugins/
content_types/ user_context/ profile_fields.inc - 'Edit' callback for the 'profile fields' content type.
File
-
plugins/
content_types/ user_context/ profile_fields.inc, line 76
Code
function _ctools_profile_fields_options() {
$cat_list = array();
$categories = profile_categories();
foreach ($categories as $key => $value) {
$cat_list[str_replace(" ", "_", $value['name'])] = $value['title'];
}
return $cat_list;
}