Skip to content

Instantly share code, notes, and snippets.

...abbreviated
<div class="dropdown-menu scroll pull-right">
<ul role="menu">
<li class="profileactions-profile"><a href="{{profileUrl}}">{{str "LBL_PROFILE"}}</a></li>
<li class="profileactions-employees"><a href="{{employeesUrl}}">{{str "LBL_EMPLOYEES"}}</a></li>
{{#if showAdmin}}
<li class="administration"><a href="#Administration">{{str "LBL_ADMIN"}}</a></li>
{{/if}}
<li class="profileactions-about"><a href="#bwc/index.php?module=Home&action=About">{{str "LNK_ABOUT"}}</a></li>
<li class="profileactions-logout"><a href="#logout/?clear=1">{{str "LBL_LOGOUT"}}</a></li>
<?php
$queryParams = array(
'module' => 'Accounts',
'action' => 'DetailView',
'record' => $recordId,
);
SugarApplication::redirect('index.php?' . http_build_query($queryParams));
@jmertic
jmertic / logic_hook.php
Created December 4, 2012 15:49 — forked from rick0ff/logic_hook.php
path: custom/modules/Agreements/
<?php
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['process_record'] = Array();
$hook_array['after_ui_frame'] = Array();
$hook_array['process_record'][] = Array(1, 'Sum_Each', 'custom/modules/Agreements/sum.php','SumAgreementsHook', 'sumTotalFromEachRow');
$hook_array['after_ui_frame'][] = Array(1, 'Display_Sum', 'custom/modules/Agreements/sum.php','SumAgreementsHook', 'displaySumTotal');