Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Feb 2010 at 01:02 UTC
Updated:
14 May 2010 at 19:30 UTC
Jump to comment: Most recent file
see function _system_date_format_types_build() in modules/system/system.module
http://api.drupal.org/api/function/_system_date_format_types_build/7
It invokes drupal_alter(), leading to hook_date_format_types(), which isn't documented. See http://api.drupal.org/api/function/hook_date_format_types/7
This is part of this meta-issue: #675046: Make sure all hooks in D7 have documentation
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 718894.patch | 1.47 KB | robeano |
| #6 | 718894.patch | 1.47 KB | robeano |
| #5 | 718894.patch | 1.47 KB | robeano |
| #4 | 718894.patch | 1.39 KB | robeano |
Comments
Comment #1
derjochenmeyer commentedThe title mentions hook_date_format_types_alter()
While the text mentions hook_date_format_types()
There is documentation for hook_date_format_types() at http://api.drupal.org/api/function/hook_date_format_types/7
If I am not misunderstanding somehting, this should be fixed?
Comment #2
jhodgdonWhat happens is that in _system_date_format_types_build(), at the end, it does:
drupal_alter('date_format_types', $types);
Which means that it is invoking hook_date_format_types_alter().
Which isn't documented.
There is a typo in the original issue description. The issue title is correct.
Comment #3
jhodgdonstatus update (there is no patch to review)
Comment #4
robeano commentedPatch attached. I am slightly concerned about my example. If someone has a better idea, please let me know.
Comment #5
robeano commentedWhat a mess! Thanks to jhodgdon for providing much needed advice! Let's try this again.
Comment #6
robeano commentedAnd again...minor fixes to meet standards.
Comment #7
jhodgdonAside from a space at the end of one line, this looks great!
Comment #8
robeano commentedRemoved that last stinkin' space! We're all set here.
Comment #9
webchickGreat job! Committed to HEAD! :)