You are here

function _panels_profile_fields_options in Panels 6.2

Same name and namespace in other branches
  1. 5.2 content_types/profile_fields.inc \_panels_profile_fields_options()

Helper function : build the list of categories for the 'edit' form.

1 call to _panels_profile_fields_options()
panels_profile_fields_configure in content_types/profile_fields.inc
'Edit' callback for the 'profile fields' content type.

File

content_types/profile_fields.inc, line 91

Code

function _panels_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;
}