function _content_profile_registration_get_fields in Content Profile 6
Helper function to return all available fields for a particular content type.
Parameters
string $type: The content type to return fields for.
Return value
array Associated fields for the given content type.
1 call to _content_profile_registration_get_fields()
- _content_profile_registration_get_field_select in modules/
content_profile_registration.module - Returns an array of selectable form elements that may be hidden, mostly containing CCK fields.
File
- modules/
content_profile_registration.module, line 69 - Allows exposure and processing of content_profile node fields at user registration
Code
function _content_profile_registration_get_fields($type) {
$typeinfo = content_types($type);
return $typeinfo['fields'];
}