Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created July 30, 2014 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmertic/0a2d2bc2a1fb441abbfe to your computer and use it in GitHub Desktop.
Save jmertic/0a2d2bc2a1fb441abbfe to your computer and use it in GitHub Desktop.
record.php for this blog post http://wp.me/p419c4-2SB
<?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