Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. 'uc_order_product' => array(
  2. 'label' => t('Order product'),
  3. 'base table' => 'uc_order_products',
  4. 'controller class' => 'UcOrderProductController',
  5. 'metadata controller class' => 'UcOrderProductMetadataController',
  6. 'entity keys' => array(
  7. 'id' => 'order_product_id',
  8. 'label' => t('Order product'),
  9. ),
  10. 'bundles' => array(
  11. 'uc_order_product' => array(
  12. 'label' => t('Order product'),
  13. ),
  14. ),
  15. 'view modes' => array(
  16. 'full' => array(
  17. 'label' => t('Normal view'),
  18. ),
  19. 'cart' => array(
  20. 'label' => t('Cart view'),
  21. ),
  22. ),
  23. // Entity API callbacks.
  24. 'access callback' => 'uc_order_order_product_access',
  25. 'save callback' => 'uc_order_product_entity_save',
  26. 'deletion callback' => 'uc_order_product_delete',
  27. )
  28.  
  29. function YOUR_MODULE_entity_info_alter(&$entity_info){
  30. if(isset($entity_info['uc_order_product'])){
  31. $entity_info['uc_order_product']['fieldable'] = TRUE;
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement