-
-
Save JimMackin/8c14245058b65ce69369 to your computer and use it in GitHub Desktop.
Custom list view action item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'modules/Calls/views/view.list.php'; | |
class CustomCallsViewList extends CallsViewList{ | |
public function preDisplay(){ | |
parent::preDisplay(); | |
$this->lv->actionsMenuExtraItems[] = $this->getNewActionMenuItem(); | |
} | |
private function getNewActionMenuItem(){ | |
global $mod_strings; | |
return <<<EOF | |
<a href='javascript:void(0)' | |
onclick="return sListView.send_form(true, 'Calls', 'index.php?entryPoint=myNewEntryPoint','Please select at least 1 record to proceed.')"> | |
{$mod_strings['LBL_NEW_ACTION']} | |
</a>"; | |
EOF; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment