// HelperList: add possibility to create custom action for each row

This commit is contained in:
dSevere
2011-10-14 14:19:45 +00:00
parent 249c817369
commit cd38def980
8 changed files with 310 additions and 114 deletions
@@ -38,13 +38,14 @@ class AdminAddressesControllerCore extends AdminController
$this->table = 'address';
$this->className = 'Address';
$this->lang = false;
$this->edit = true;
$this->delete = true;
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->requiredDatabase = true;
$this->addressType = 'customer';
$this->context = Context::getContext();
$this->addRowAction('edit');
$this->addRowAction('delete');
if (!Tools::getValue('realedit'))
$this->deleted = true;
$this->_select = 'cl.`name` as country';