Created
August 23, 2010 16:16
-
-
Save kidsil/545792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_theme(). | |
*/ | |
function product_attribute_theme() { | |
return array( | |
'product_attribute_formatter_product_attribute' => array( | |
'arguments' => array('element' => NULL), | |
), | |
); | |
} | |
/** | |
* Implements hook_field_formatter_info(). | |
*/ | |
function product_attribute_field_formatter_info() { | |
return array( | |
'product_attribute' => array( | |
'label' => 'Product Attribute', | |
'description' => t('an Attribute of a Product'), | |
'field types' => array('content_taxonomy', 'text'), | |
'multiple values' => CONTENT_HANDLE_MODULE, | |
), | |
); | |
} | |
function theme_product_attribute_formatter_product_attribute($element) { | |
return ($element['#item']['value']) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment