Skip to content

Instantly share code, notes, and snippets.

@cgi-caesar
Created March 10, 2017 11:20
Show Gist options
  • Save cgi-caesar/5250b68ce69052c1629b842c8a89e6c1 to your computer and use it in GitHub Desktop.
Save cgi-caesar/5250b68ce69052c1629b842c8a89e6c1 to your computer and use it in GitHub Desktop.
aMember (site.php): How to remove columns from admin grids
<?php
Am_Di::getInstance()->hook->add('gridCouponBatchInitGrid', function(Am_Event_Grid $e) {
$e->getGrid()->removeField('begin_date');
$e->getGrid()->removeField('expire_date');
$e->getGrid()->removeField('is_disabled');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment