/[drupal]/contributions/modules/magento/magento_products/magento_products.install
ViewVC logotype

Diff of /contributions/modules/magento/magento_products/magento_products.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by mtopolov, Mon May 25 10:30:48 2009 UTC revision 1.2 by mtopolov, Mon Nov 16 10:38:48 2009 UTC
# Line 36  function magento_products_install() { Line 36  function magento_products_install() {
36          magento_products_add_field('field_tier_price','Tier price','text','text_textfield');          magento_products_add_field('field_tier_price','Tier price','text','text_textfield');
37    
38          magento_products_add_field('field_image','Image','filefield','imagefield_widget');          magento_products_add_field('field_image','Image','filefield','imagefield_widget');
39    
40            //install_content_copy_import_from_file('content_copy_products_offer.inc');
41    
42            $form_values['type_name'] = '<create>';
43            $form_values['macro'] = magento_products_marco_products_offer();
44            $form_state['values'] = $form_values;
45            $form = array();
46            drupal_execute('content_copy_import_form', $form_state, '<create>');
47  }  }
48  /**  /**
49   * Implementation of hook_uninstall()   * Implementation of hook_uninstall()
50   */   */
51  function magento_products_uninstall() {  function magento_products_uninstall() {
52          magento_products_delete_content_type('product','Product');          magento_products_delete_content_type('product','Product');
53            magento_products_delete_content_type('product_offer','Product offer');
54  }  }
55    
56    function magento_products_update_6001() {
57            module_load_include('inc', 'content', 'includes/content.crud');
58    
59            $field = content_fields('field_offer_id','product_offer');
60            if (empty($field)) {
61                    $field = array();
62                    $field['label'] = 'Offer ID';
63                    $field['field_name'] = 'field_offer_id';
64                    $field['widget_type'] = 'text_textfield';
65                    $field['type'] = 'text';
66                    $field['parent'] = '';
67                    $field['hidden_name'] = '_add_new_field';
68                    $field['type_name'] = 'product_offer';
69            }
70            content_field_instance_create($field);
71            $field = content_fields('field_price_type','product_offer');
72            if (empty($field)) {
73                    $field = array();
74                    $field['label'] = 'Offer Price Type';
75                    $field['field_name'] = 'field_price_type';
76                    $field['widget_type'] = 'text_textfield';
77                    $field['type'] = 'text';
78                    $field['parent'] = '';
79                    $field['hidden_name'] = '_add_new_field';
80                    $field['type_name'] = 'product_offer';
81            }
82            content_field_instance_create($field);
83            $field = content_fields('field_items_option','product_offer');
84            if (empty($field)) {
85                    $field = array();
86                    $field['label'] = 'Offer Items';
87                    $field['field_name'] = 'field_items_option';
88                    $field['widget_type'] = 'text_textfield';
89                    $field['type'] = 'text';
90                    $field['parent'] = '';
91                    $field['hidden_name'] = '_add_new_field';
92                    $field['multiple'] = 1;
93                    $field['type_name'] = 'product_offer';
94            }
95            content_field_instance_create($field);
96            return array();
97    }
98  function magento_products_add_content_type($content_type,$name) {  function magento_products_add_content_type($content_type,$name) {
99  $type = new stdClass();  $type = new stdClass();
100          $type->type = $content_type;          $type->type = $content_type;
# Line 153  function magento_products_add_field($nam Line 204  function magento_products_add_field($nam
204                  }                  }
205          content_field_instance_create($field);          content_field_instance_create($field);
206          }          }
207    }
208    
209    /**
210     * saved products offer content type
211     *
212     * @return macro
213     */
214    
215    function magento_products_marco_products_offer() {
216            $macro = "%1content['type'] = array ( 'name' => 'Product offer', 'type' => 'product_offer', 'description' => 'Product offer.', 'title_label' => 'Titre', 'body_label' => 'Corps du post', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => false, 'sticky' => false, 'revision' => false, ), 'language_content_type' => '0', 'forward_display' => 0, 'old_type' => 'product_offer', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', 'content_profile_use' => 0, 'comment' => '0', 'comment_default_mode' => '2', 'comment_default_order' => '1', 'comment_default_per_page' => '10', 'comment_controls' => '3', 'comment_anonymous' => '1', 'comment_subject_field' => '0', 'comment_preview' => '0', 'comment_form_location' => '1', 'teaser_field' => '0', 'print_display' => 1, 'print_display_comment' => 0, 'print_display_urllist' => 1, 'print_pdf_display' => 1, 'print_pdf_display_comment' => 0, 'print_pdf_display_urllist' => 1, ); %1content['fields'] = array ( 0 => array ( 'label' => 'Accroche', 'field_name' => 'field_accroche', 'type' => 'text', 'widget_type' => 'text_textarea', 'change' => 'Modifier les informations de base', 'weight' => '-2', 'rows' => '5', 'size' => 60, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_accroche][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'group' => false, 'required' => 1, 'multiple' => '0', 'text_processing' => '1', 'max_length' => '500', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), 'format' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, 'views' => false, ), ), 'display_settings' => array ( 'weight' => '1', 'parent' => '', 'label' => array ( 'format' => 'hidden', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 1 => array ( 'label' => 'Image', 'field_name' => 'field_image', 'type' => 'filefield', 'widget_type' => 'imagefield_widget', 'change' => 'Modifier les informations de base', 'weight' => '-1', 'file_extensions' => 'jpg jpeg png gif', 'progress_indicator' => 'bar', 'file_path' => 'focus_block', 'max_filesize_per_file' => '', 'max_filesize_per_node' => '', 'max_resolution' => 0, 'min_resolution' => 0, 'custom_alt' => 0, 'alt' => '', 'custom_title' => 0, 'title' => '', 'description' => '', 'group' => false, 'required' => 0, 'multiple' => '0', 'list_field' => '0', 'list_default' => 1, 'description_field' => '0', 'op' => 'Enregistrer les parametres du champ', 'module' => 'filefield', 'widget_module' => 'imagefield', 'columns' => array ( 'fid' => array ( 'type' => 'int', 'not null' => false, 'views' => true, ), 'list' => array ( 'type' => 'int', 'size' => 'tiny', 'not null' => false, 'views' => true, ), 'data' => array ( 'type' => 'text', 'serialize' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '6', 'parent' => '', 'label' => array ( 'format' => 'hidden', ), 'teaser' => array ( 'format' => 'hidden', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 2 => array ( 'label' => 'Price', 'field_name' => 'field_price', 'type' => 'number_float', 'widget_type' => 'number', 'change' => 'Modifier les informations de base', 'weight' => 0, 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_price][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_price' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_price][0][value', ), ), ), 'group' => false, 'required' => 1, 'multiple' => '0', 'min' => '', 'max' => '', 'prefix' => '', 'suffix' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'number', 'widget_module' => 'number', 'columns' => array ( 'value' => array ( 'type' => 'float', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '10', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 3 => array ( 'label' => 'Tier price', 'field_name' => 'field_tier_price', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Modifier les informations de base', 'weight' => '1', 'rows' => 5, 'size' => '60', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_tier_price][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_tier_price' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_tier_price][0][value', ), ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '11', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 4 => array ( 'label' => 'Special Price', 'field_name' => 'field_special_price', 'type' => 'number_float', 'widget_type' => 'number', 'change' => 'Modifier les informations de base', 'weight' => '2', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_special_price][0][value', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_special_price' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_special_price][0][value', ), ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'min' => '', 'max' => '', 'prefix' => '', 'suffix' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'number', 'widget_module' => 'number', 'columns' => array ( 'value' => array ( 'type' => 'float', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '12', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 5 => array ( 'label' => 'Special Price from date', 'field_name' => 'field_special_price_from_date', 'type' => 'date', 'widget_type' => 'date_popup', 'change' => 'Modifier les informations de base', 'weight' => '3', 'default_value' => 'blank', 'default_value2' => 'same', 'default_value_code' => '', 'default_value_code2' => '', 'input_format' => 'Y/m/d', 'input_format_custom' => '', 'year_range' => '-1:+1', 'increment' => '1', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'label_position' => 'above', 'text_parts' => array ( ), 'description' => '', 'group' => false, 'required' => 0, 'multiple' => '0', 'repeat' => 0, 'todate' => '', 'granularity' => array ( 'year' => 'year', 'month' => 'month', 'day' => 'day', ), 'default_format' => 'medium', 'tz_handling' => 'none', 'timezone_db' => 'Europe/Paris', 'op' => 'Enregistrer les parametres du champ', 'module' => 'date', 'widget_module' => 'date', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '13', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 6 => array ( 'label' => 'Special Price to date', 'field_name' => 'field_special_price_to_date', 'type' => 'date', 'widget_type' => 'date_popup', 'change' => 'Modifier les informations de base', 'weight' => '4', 'default_value' => 'blank', 'default_value2' => 'same', 'default_value_code' => '', 'default_value_code2' => '', 'input_format' => 'Y/m/d', 'input_format_custom' => '', 'year_range' => '-1:+1', 'increment' => '1', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'label_position' => 'above', 'text_parts' => array ( ), 'description' => '', 'group' => false, 'required' => 0, 'multiple' => '0', 'repeat' => 0, 'todate' => '', 'granularity' => array ( 'year' => 'year', 'month' => 'month', 'day' => 'day', ), 'default_format' => 'medium', 'tz_handling' => 'none', 'timezone_db' => 'Europe/Paris', 'op' => 'Enregistrer les parametres du champ', 'module' => 'date', 'widget_module' => 'date', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '14', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 7 => array ( 'label' => 'Produits lies', 'field_name' => 'field_linked_products', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Modifier les informations de base', 'weight' => '5', 'autocomplete_match' => 'contains', 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_linked_products' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => array ( 0 => '', ), ), ), ), 'group' => false, 'required' => 0, 'multiple' => '1', 'referenceable_types' => array ( 'product' => 'product', 'billet_blog' => 0, 'focus_block_link' => 0, 'page' => 0, 'product_offer' => 0, 'profile' => 0, 'ressource' => 0, 'rule' => 0, 'story' => 0, 'ad' => false, 'billet_blog_sequence' => false, 'link' => false, 'magento_order' => false, 'simplenews' => false, 'ressource_sequence' => false, 'member_specification_file' => false, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, ), ), 'display_settings' => array ( 'weight' => '3', 'parent' => '', 'label' => array ( 'format' => 'hidden', ), 'teaser' => array ( 'format' => 'hidden', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 8 => array ( 'label' => 'Ressources liees', 'field_name' => 'field_linked_ressources', 'type' => 'nodereference', 'widget_type' => 'nodereference_autocomplete', 'change' => 'Modifier les informations de base', 'weight' => '6', 'autocomplete_match' => 'contains', 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => NULL, '_error_element' => 'default_value_widget][field_linked_ressources][0][nid][nid', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_linked_ressources' => array ( 0 => array ( 'nid' => array ( 'nid' => '', '_error_element' => 'default_value_widget][field_linked_ressources][0][nid][nid', ), '_error_element' => 'default_value_widget][field_linked_ressources][0][nid][nid', ), ), ), 'group' => false, 'required' => 0, 'multiple' => '1', 'referenceable_types' => array ( 'ressource' => 'ressource', 'ad' => 0, 'billet_blog' => 0, 'billet_blog_sequence' => 0, 'focus_block_link' => 0, 'link' => 0, 'magento_order' => 0, 'simplenews' => 0, 'page' => 0, 'product' => 0, 'product_offer' => 0, 'profile' => 0, 'ressource_sequence' => 0, 'rule' => 0, 'story' => 0, 'member_specification_file' => 0, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, ), ), 'display_settings' => array ( 'weight' => '4', 'parent' => '', 'label' => array ( 'format' => 'hidden', ), 'teaser' => array ( 'format' => 'hidden', 'exclude' => 0, ), 'full' => array ( 'format' => 'hidden', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 9 => array ( 'label' => 'Offer ID', 'field_name' => 'field_offer_id', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Modifier les informations de base', 'weight' => '7', 'rows' => 5, 'size' => 60, 'description' => '', 'default_value' => array ( ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_offer_id' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_offer_id][0][value', ), ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'text_processing' => '', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 2 => array ( 'format' => 'default', 'exclude' => 0, ), 3 => array ( 'format' => 'default', 'exclude' => 0, ), 'email_plain' => array ( 'format' => 'default', 'exclude' => 0, ), 'email_html' => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 10 => array ( 'label' => 'Offer Price Type', 'field_name' => 'field_price_type', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Modifier les informations de base', 'weight' => '8', 'rows' => 5, 'size' => 60, 'description' => '', 'default_value' => array ( ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_price_type' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_price_type][0][value', ), ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'text_processing' => '', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 2 => array ( 'format' => 'default', 'exclude' => 0, ), 3 => array ( 'format' => 'default', 'exclude' => 0, ), 'email_plain' => array ( 'format' => 'default', 'exclude' => 0, ), 'email_html' => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 11 => array ( 'label' => 'Offer Items', 'field_name' => 'field_items_option', 'type' => 'text', 'widget_type' => 'text_textfield', 'change' => 'Modifier les informations de base', 'weight' => '9', 'rows' => 5, 'size' => 60, 'description' => '', 'default_value' => array ( ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_items_option' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_items_option][0][value', ), ), ), 'group' => false, 'required' => 0, 'multiple' => '1', 'text_processing' => '', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'text', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 2 => array ( 'format' => 'default', 'exclude' => 0, ), 3 => array ( 'format' => 'default', 'exclude' => 0, ), 'email_plain' => array ( 'format' => 'default', 'exclude' => 0, ), 'email_html' => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 12 => array ( 'label' => 'Blogs lies', 'field_name' => 'field_linked_blogs', 'type' => 'nodereference', 'widget_type' => 'nodereference_select', 'change' => 'Modifier les informations de base', 'weight' => '10', 'autocomplete_match' => 'contains', 'description' => '', 'default_value' => array ( 0 => array ( 'nid' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_linked_blogs' => array ( 0 => array ( 'nid' => '', ), 'nid' => array ( 'nid' => array ( 0 => '', ), ), ), ), 'group' => false, 'required' => 0, 'multiple' => '1', 'referenceable_types' => array ( 'billet_blog' => 'billet_blog', 'ad' => 0, 'billet_blog_sequence' => 0, 'focus_block_link' => 0, 'link' => 0, 'magento_order' => 0, 'simplenews' => 0, 'page' => 0, 'product' => 0, 'product_offer' => 0, 'profile' => 0, 'ressource' => 0, 'ressource_sequence' => 0, 'rule' => 0, 'story' => 0, 'member_specification_file' => 0, ), 'advanced_view' => '--', 'advanced_view_args' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'nodereference', 'widget_module' => 'nodereference', 'columns' => array ( 'nid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 2 => array ( 'format' => 'default', 'exclude' => 0, ), 3 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 13 => array ( 'label' => 'List image', 'field_name' => 'field_list_image', 'type' => 'filefield', 'widget_type' => 'imagefield_widget', 'change' => 'Modifier les informations de base', 'weight' => '11', 'file_extensions' => 'jpg jpeg png gif', 'progress_indicator' => 'bar', 'file_path' => '', 'max_filesize_per_file' => '', 'max_filesize_per_node' => '', 'max_resolution' => 0, 'min_resolution' => 0, 'custom_alt' => 0, 'alt' => '', 'custom_title' => 0, 'title' => '', 'description' => '', 'group' => false, 'required' => 0, 'multiple' => '0', 'list_field' => '0', 'list_default' => 1, 'description_field' => '0', 'op' => 'Enregistrer les parametres du champ', 'module' => 'filefield', 'widget_module' => 'imagefield', 'columns' => array ( 'fid' => array ( 'type' => 'int', 'not null' => false, ), 'list' => array ( 'type' => 'int', 'size' => 'tiny', 'not null' => false, ), 'data' => array ( 'type' => 'text', 'serialize' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'image_plain', 'exclude' => 0, ), 'full' => array ( 'format' => 'image_plain', 'exclude' => 0, ), 4 => array ( 'format' => 'image_plain', 'exclude' => 0, ), 2 => array ( 'format' => 'image_plain', 'exclude' => 0, ), 3 => array ( 'format' => 'image_plain', 'exclude' => 0, ), ), ), 14 => array ( 'label' => 'Valid from date', 'field_name' => 'field_new_from_date', 'type' => 'date', 'widget_type' => 'date_popup', 'change' => 'Modifier les informations de base', 'weight' => '14', 'default_value' => 'blank', 'default_value2' => 'same', 'default_value_code' => '', 'default_value_code2' => '', 'input_format' => 'Y/m/d', 'input_format_custom' => '', 'year_range' => '-1:+1', 'increment' => '1', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'label_position' => 'above', 'text_parts' => array ( ), 'description' => '', 'group' => false, 'required' => 0, 'multiple' => '0', 'repeat' => 0, 'todate' => '', 'granularity' => array ( 'year' => 'year', 'month' => 'month', 'day' => 'day', ), 'default_format' => 'medium', 'tz_handling' => 'none', 'timezone_db' => 'Europe/Paris', 'op' => 'Enregistrer les parametres du champ', 'module' => 'date', 'widget_module' => 'date', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '8', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 15 => array ( 'label' => 'Valid to date', 'field_name' => 'field_new_to_date', 'type' => 'date', 'widget_type' => 'date_popup', 'change' => 'Modifier les informations de base', 'weight' => '16', 'default_value' => 'blank', 'default_value2' => 'same', 'default_value_code' => '', 'default_value_code2' => '', 'input_format' => 'Y/m/d', 'input_format_custom' => '', 'year_range' => '-1:+1', 'increment' => '1', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'label_position' => 'above', 'text_parts' => array ( ), 'description' => '', 'group' => false, 'required' => 0, 'multiple' => '0', 'repeat' => 0, 'todate' => '', 'granularity' => array ( 'year' => 'year', 'month' => 'month', 'day' => 'day', ), 'default_format' => 'medium', 'tz_handling' => 'none', 'timezone_db' => 'Europe/Paris', 'op' => 'Enregistrer les parametres du champ', 'module' => 'date', 'widget_module' => 'date', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '9', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 16 => array ( 'label' => 'Stock Availability', 'field_name' => 'field_stock_availability', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Modifier les informations de base', 'weight' => '18', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_stock_availability' => array ( 'value' => '', ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0|Out of Stock 1|In stock', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '6', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 17 => array ( 'label' => 'Status', 'field_name' => 'field_status', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Modifier les informations de base', 'weight' => '20', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_status' => array ( 'value' => '', ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '1|Enabled 2|Disabled', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '4', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), 18 => array ( 'label' => 'Visibility', 'field_name' => 'field_visibility', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Modifier les informations de base', 'weight' => '22', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => '', ), ), 'default_value_php' => '', 'default_value_widget' => array ( 'field_visibility' => array ( 'value' => '', ), ), 'group' => false, 'required' => 0, 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '1|Nowhere 2|Catalog 3|Search 4|Catalog,Search', 'allowed_values_php' => '', 'op' => 'Enregistrer les parametres du champ', 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, 'views' => true, ), ), 'display_settings' => array ( 'weight' => '5', 'parent' => '', 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), ); %1content['extra'] = array ( 'title' => '-5', 'body_field' => '-3', 'menu' => '-4', 'print' => '12', );";
217            $macro = str_replace("%1", "$", $macro);
218            return $macro;
219  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.3