Loading

Author Topic: osc_add_hook() or osc_addHook()?  (Read 239 times)

Joe

  • Newbie
  • *
  • Posts: 20
    • Joe's Garage Sale
osc_add_hook() or osc_addHook()?
« on: February 17, 2012, 11:23:03 am »
Hi all,

I read in the wiki that the function for calling a plugin is osc_addHook(). However, every plugin developer seems to use osc_add_hook().

Is there a difference between these functions? Is it an error in the wiki? Is it something completely different ... ?

// Joe

Jesse

  • Hero Member
  • *****
  • Posts: 509
  • Out of my mind, back in 5 minutes
    • Nuclear Projects
    • Email
Re: osc_add_hook() or osc_addHook()?
« Reply #1 on: February 17, 2012, 11:33:59 am »
It should be osc_add_hook as far as I know, so it looks like that was a typo. I've gone and fixed the Wiki.

I don't know if perhaps it "use" to be just osc_addhook or not... but I do know that doesn't work now.
Some helpful OSClass pages and customizations I've worked on... http://doc.osclass.org/User:Jesse
Please, no questions via email. Ask them on the forum.

Joe

  • Newbie
  • *
  • Posts: 20
    • Joe's Garage Sale
Re: osc_add_hook() or osc_addHook()?
« Reply #2 on: February 17, 2012, 11:55:39 am »
Hi Jesse,

thanks a lot for your quick clarification.

// Joe

Juan Ramón

  • OSClass Developer
  • Hero Member
  • *****
  • Posts: 2243
    • osclass.org
    • Email
Re: osc_add_hook() or osc_addHook()?
« Reply #3 on: February 21, 2012, 03:16:39 am »
It used to be osc_addHook but it was a long time ago. Where did you see it?

trains58554

  • Super Moderator
  • Hero Member
  • *****
  • Posts: 1820
  • The Ghostbuster
Re: osc_add_hook() or osc_addHook()?
« Reply #4 on: February 21, 2012, 03:23:16 am »
Hi Juan,

The hook name errors have been fixed on the wiki. The page was http://wiki.osclass.org/Hooks

Jay

Juan Ramón

  • OSClass Developer
  • Hero Member
  • *****
  • Posts: 2243
    • osclass.org
    • Email
Re: osc_add_hook() or osc_addHook()?
« Reply #5 on: February 21, 2012, 03:24:38 am »
Perfect! Thank you guys!