v1.0 currency symbol

edited March 2013 in Feature Requests
In a module I've created, there is a column "price".

This is formatted nicely in the admin module page with a $ symbol - how do I change that symbol? There seems to be a custom_fields function ( currency() ) that might offer an alternative, but I'm not sure from where it might be fetching it?

Comments

  • edited 5:04PM
    You can pass a "currency" parameter to your field. The default is "$". You can also pass in the separator and decimal field:
    $fields['price'] = array('type' => 'currency', 'currency' => '€', 'separator' => '.', 'decimal' => ',');
  • edited 5:04PM
    Of course!

    I was expecting it to be in a config file instead.
Sign In or Register to comment.