Hi all,

I was reading through a copy of Pro Drupal Development recently and came across the hook_admin_settings bit in the Module chapter. Why is that hook not included in the API documentation?? Is that intentional?

Comments

jmlavarenne’s picture

It's not a hook - it's defined as a callback in hook_menu.

Found this that helped me sort out this mental cramp :

http://drupal.org/node/64279#hook-settings

govinda_roul’s picture

Look at the function name annotate_admin_settings() which you people are called hook_admin_setting and I strongly disagree on this. Because see what is the return value of that function and i.e. "return system_settings_form($form)" which is implementing the form API and returning the values in an user defined function.