http://api.drupal.org/api/function/example_profile_details/7
"Versions 6 – 7"

I think, if you want this in Drupal 7, than you have to write your name and description values into the profile .info file, instead of creating this function.

Comments

jhodgdon’s picture

Title: Documentation problem with example_profile_details » example_profile_details using outdated hooks
Project: Drupal core » Examples for Developers
Version: 7.x-dev »
Component: documentation » Other

Can we possibly move the example profile into the Examples for Developers area and make it actually updated? It is an orphan...

Otherwise, perhaps move this to the api.drupal.org webmasters queue and get rid of this example, since it's horribly wrong for D7.

jhodgdon’s picture

Title: example_profile_details using outdated hooks » example_profile using outdated hooks
jhodgdon’s picture

For another report of problems with this example profile, see #830220: example_profile_task_list horribly wrong

rfay’s picture

Status: Active » Closed (duplicate)

Duplicate of #715176: Adopt example.profile. I agree that we should adopt.

For the immediate term we should probably remove the existing profile.

Let's get drumm to remove it.