/** * Return the base config for given editable attribute * * @param string $type Grid block type * @param string $code Attribute code * @param Mage_Eav_Model_Entity_Attribute $attribute Attribute object * @return array */ protected function _getEditableAttributeBaseConfig($type, $code, $attribute) { // All those values pretty much correspond to the editable fields configs ones ("missing" ones are induced) return array('in_grid' => in_array($attribute->getFrontend()->getInputType(), array('date', 'multiselect', 'price', 'select', 'text')), 'edit_block_type' => 'default', 'render_block_type' => 'default', 'ids_key' => 'identifiers', 'additional_key' => 'additional', 'values_key' => 'values', 'must_filter' => false, 'filter_type' => null, 'filter_params' => array(), 'render_reload' => $attribute->getBackendModel() != '', 'column_params' => array(), 'layout_handles' => array(), 'window_width' => '80%', 'window_height' => '80%', 'window_draggable' => true, 'window_resizable' => true, 'window_recenter_auto' => false, 'window_title' => Mage::helper('customgrid')->__('Edit Value'), 'renderer_params' => array()); }