Re: Hi Lyle, Should this code
Image buttons instead of submits for 'Add to Cart' on product pages (6 replies) Wed, 08/08/2007 - 17:42
- Changing the add to cart button to an image (09/08/2008 - 11:03)
- There's a few ways (09/08/2008 - 12:05)
- Re: There's a few ways (10/09/2008 - 14:22)
- There's a few ways (09/08/2008 - 12:05)
- Hi Lyle,
Should this code (09/26/2007 - 19:26)
- Re: Hi Lyle,
Should this code (09/27/2007 - 07:33)
- Re: Re: Hi Lyle, Should this code (09/27/2007 - 08:51)
- Re: Hi Lyle,
Should this code (09/27/2007 - 07:33)

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.