<?php

/**
 * SP Engage Integration
 * @author Celenia Software
 */

foreach ($js_groupings as $key => $groupings)
{
    foreach ($groupings as $file => $target)
    {
        if ($target == "include/javascript/sugar_grp7.min.js")
        {
            $js_groupings[$key]["custom/modules/Contacts/sp_recordview.js"]             = "include/javascript/sugar_grp7.min.js";
            $js_groupings[$key]["custom/modules/Leads/sp_recordview.js"]                = "include/javascript/sugar_grp7.min.js";
            $js_groupings[$key]["custom/modules/Campaigns/sp_recordview.js"]            = "include/javascript/sugar_grp7.min.js";
            $js_groupings[$key]["custom/modules/SP_MailingTemplates/sp_recordview.js"]  = "include/javascript/sugar_grp7.min.js";
            $js_groupings[$key]["custom/modules/SP_TemplateFolders/sp_recordview.js"]  = "include/javascript/sugar_grp7.min.js";
        }
        
        break;
    }
}
