Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created July 30, 2014 15:46
Show Gist options
  • Select an option

  • Save jmertic/0a2d2bc2a1fb441abbfe to your computer and use it in GitHub Desktop.

Select an option

Save jmertic/0a2d2bc2a1fb441abbfe to your computer and use it in GitHub Desktop.

Revisions

  1. jmertic created this gist Jul 30, 2014.
    15 changes: 15 additions & 0 deletions record.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    <?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',
    );
    }
    }