title: Programmatically Adding An Attribute
body: <p>I'm trying to add attribute from the setup script.Even though attribute is getting added,some of the options has different values than the one specified in the setup script</p>
  
  <pre><code>/* @var $installer Mage_Eav_Model_Entity_Setup */
  $installer = $this;
  
  $installer-&gt;startSetup();
  
  
  $entityTypeId = 'catalog_product';
  $attributeCode ='dz_video';
  
  $data = array(
      'type'=&gt;'textarea',
      'input'=&gt;'text',
      'label'=&gt;'Video',
      'is_required' =&gt;'0',
      'is_unique' =&gt;'0',
      'is_global' =&gt;Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
      'is_comparable'=&gt;'0',
      'is_wysiwyg_enabled'=&gt;'0',
      'is_searchable'=&gt;'0',
      'is_used_for_price_rules'=&gt;'0',
      'is_html_allowed_on_front'=&gt;'1',
      'is_visible_on_front'=&gt;'1',
      'used_in_product_listing'=&gt;'0',
      'used_for_sort_by'=&gt;'0',
      'user_defined'=&gt;'1',
      'is_configurable'=&gt;'1'
  );
  
  $installer-&gt;addAttribute($entityTypeId,$attributeCode,$data);
  </code></pre>
  
  <p>For example,specified value for 'is_required' is 0 but in the admin "Required" option is set to Yes</p>