Author Topic: Where are all those referenced functions?  (Read 540 times)

maxicooper

  • Beginner
  • *
  • Posts: 6
Where are all those referenced functions?
« on: August 12, 2011, 21:22:08 pm »
Sorry if this is a very basic question, but I'm new to VM. I started working on my theme's files and I can find many functions called, but can't figure out where are they, so I can take a peek at what they do... Can anyone point me in the right direction?

Thanks a lot.

Max

dylanjh

  • Jr. Member
  • **
  • Posts: 85
    • Lunarhotel.co.uk
Re: Where are all those referenced functions?
« Reply #1 on: August 12, 2011, 21:39:48 pm »
This is where grep comes in handy. Im not sure what platform you are developing on, but for windows there is wingrep and of course linux / mac osx you have grep. Grep will search within file for a certain string.
The windows version is quite straight forward, for the linux version, just use

grep -R "function functionname" ./

Will search the current folder (and everything below it) for the string "function functionname"
Register in Joomla / Virtuemart without a Username (uses email address instead). http://www.lunarhotel.co.uk

maxicooper

  • Beginner
  • *
  • Posts: 6
Re: Where are all those referenced functions?
« Reply #2 on: August 12, 2011, 22:07:10 pm »
Appreciate your reply, but I did try a similar search in my local backup and couldn't find it. That's why I got confused and asked for some advise. I'm looking for functions like showManufacturerLink, for eg. Any other ideas?