GetSimple Support Forum
hooks - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: hooks (/showthread.php?tid=2841)



hooks - shawn_a - 2012-02-29

Some general hooks issues, ideas.

Was playing with and auditing hooks
I found these Issues

These are in docs but not in code
  • support-save
  • settings-cpsettings

These are in code but not in docs
  • html-editor-init
  • pages-main

  • settings-user-extras
  • file-extras (doc typo?)
  • save-sitemap (doc typo?)

Anyone know the deal on these so the wiki can be updated ?

Also
I would like to see a new hook after debuglog, so we can use our own debugging tools to read the global or whatever.


hooks - ccagle8 - 2012-02-29

thanks for doing this auditing Shawn! I am sure that hook list needs updated and what you found sounds like it is correct.

What do you mean doc typo?


hooks - shawn_a - 2012-02-29

ccagle8 Wrote:thanks for doing this auditing Shawn! I am sure that hook list needs updated and what you found sounds like it is correct.

What do you mean doc typo?
The docs have these two which look like typos for those two actual hooks above.

files-extras
sitemap-save


hooks - ccagle8 - 2012-02-29

Shawn, yes, you are right


RE: hooks - Carlos - 2013-05-01

What's the html-editor-init hook for?
Any plugins using it?


RE: hooks - shawn_a - 2013-05-01

I think it is after the editor is inserted, which is kind of stupid since it should always be initialized in javascript, but it is not instead we insert it inline in edit.php.

It will probably break in 3.3, at which point a javascript callout hook will probably be used.
and this hook will be used to replace the editor or something else will be.