Help text reads:

Perform alterations profile items before they are rendered.

Correct text should be:

Perform alterations on profile items before they are rendered.

Comments

jhodgdon’s picture

Title: Documentation problem with hook_profile_alter help text » hook_profile_alter() doc block has typo on main description line
Issue tags: +Novice

Good catch! Thanks for reporting. This is on http://api.drupal.org/api/function/hook_profile_alter/6 and the hook does not appear to exist in Drupal 7.

Probably should be changed to "alterations of". Or better yet, just "Alter profile items...".

flickerfly’s picture

I'd be glad to throw a quick patch together to resolve this, but I can't figure out where the function is declared. This isn't part of drupal core is it? Is the website code somewhere that I could patch or does this need to be changed to the Drupal.org webmaster's project?

jhodgdon’s picture

Status: Active » Fixed

If you go to http://api.drupal.org/api/function/hook_profile_alter/6, you can see in the "Code" section that the file is "developer/hooks/core.php, line 997"

The information that is not obvious from that is what that means. :) In Drupal 6, this file is in the Contributions repository, not the main Drupal repository, and within that repository, it's in contributions/docs/developer/hooks in file core.php.

Since it's in the contrib repository and I have a CVS account, though, I just went ahead and fixed it.
http://drupal.org/cvs?commit=317656

Please try another one though. :)

flickerfly’s picture

Issue tags: +Documentation, +how-to

Thank you very much for the explanation and showing the path to follow.

jhodgdon’s picture

Issue tags: -Documentation, -how-to

Please don't add random tags to issues. This issue is in the "documentation" component, so it doesn't need a "documentation" tag. The "how-to" tag doesn't appear to exist outside of this issue, and we don't like to just create new tags if possible.

Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.