No it wouldn't because it's not a theme function. It's an implementation of a hook, so it needs to be in a module. To make a module, all you need is an .info file explaining what the module is, and a .module file containing that code snippet. drupal.org has more details in the handbooks.
Re: Hi Lyle, Should this code
Thu, 09/27/2007 - 08:33
#1
Re: Hi Lyle,
Should this code
Image buttons instead of submits for 'Add to Cart' on product pages By: bwv (6 replies) Wed, 08/08/2007 - 18:42
- Changing the add to cart button to an image By: primalmedia@drupal.org (09/08/2008 - 12:03)
- There's a few ways By: vince.rowe (09/08/2008 - 13:05)
- Re: There's a few ways By: primalmedia@drupal.org (10/09/2008 - 15:22)
- There's a few ways By: vince.rowe (09/08/2008 - 13:05)
- Hi Lyle,
Should this code By: jimi089 (09/26/2007 - 20:26)
- Re: Hi Lyle,
Should this code By: Lyle (09/27/2007 - 08:33)
- Re: Re: Hi Lyle, Should this code By: jimi089 (09/27/2007 - 09:51)
- Re: Hi Lyle,
Should this code By: Lyle (09/27/2007 - 08:33)

