Created
July 30, 2014 15:46
-
-
Save jmertic/0a2d2bc2a1fb441abbfe to your computer and use it in GitHub Desktop.
record.php for this blog post http://wp.me/p419c4-2SB
This file contains hidden or 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('clients/base/views/record/record.php'); | |
foreach($viewdefs['base']['view']['record']['buttons'] as &$set){ | |
if( $set['type'] == 'actiondropdown' && $set['name'] == 'main_dropdown'){ | |
$set['buttons'][] = array( | |
'type' => 'rowaction', | |
'event' => 'button:pm_record_reports:click', | |
'name' => 'pm_record_reports', | |
'label' => 'PM Record Reports', | |
'acl_action' => 'view', | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment