This file contains 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
...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> |
This file contains 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 | |
/** | |
* /custom/modules/Accounts/logic_hooks.php | |
*/ | |
$hook_version = 1; | |
$hook_array = Array(); | |
$hook_array['before_save'] = Array(); | |
$hook_array['before_save'][] = Array(1, 'account_type_change', 'custom/modules/Accounts/ReassignSecurityGroup.php','ReassignSecurityGroup', 'account_type_change'); |
This file contains 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 | |
/** | |
* /custom/modules/Accounts/ReassignSecurityGroup.php | |
*/ | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
class ReassignSecurityGroup { | |
function account_type_change(&$bean, $event, $arguments) | |
{ |
This file contains 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 | |
$viewdefs['base']['layout']['header'] = array( | |
'components' => | |
array( | |
array( | |
'view' => 'modulelist', | |
), | |
array( | |
'view' => 'quickcreate', | |
), |
This file contains 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
({ | |
extendsFrom: 'ProfileactionsView', | |
setCurrentUserData: function() { | |
this.wiki_user = app.user.get("wiki_user"); | |
app.view.invokeParent(this, {type: 'view', name: 'profileactions', method: 'setCurrentUserData'}); | |
} | |
}) |
This file contains 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
......abbreviated | |
<li class="profileactions-logout"><a href="#logout/?clear=1">{{str "LBL_LOGOUT"}}</a></li> | |
{{#if wiki_user}} | |
<li class="profileactions-wiki"><a href="http://www.oursite.com/wiki/{{wiki_user}}">{{wiki_user}}'s Wiki Profile</a></li> | |
{{/if}} | |
............ |
This file contains 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
require_once 'clients/base/api/CurrentUserApi.php'; | |
class WikiCurrentUserApi extends CurrentUserApi | |
{ | |
/** | |
* Override the core api with our own versoin of retrieveCurrentUser | |
*/ | |
public function registerApiRest() | |
{ | |
return array( |
This file contains 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
setCurrentUserData: function() { | |
this.fullName = app.user.get("full_name"); | |
this.userName = app.user.get("user_name"); | |
// **** our custom data to be pass through | |
this.wiki_user = app.user.get("wiki_user"); | |
//........abbreviated | |
} |
This file contains 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 | |
$dictionary['my_Module'] = array( | |
'table'=>'my_module', | |
'audited'=>false, | |
'fields'=>array ( | |
//....removed for gist | |
), | |
); | |
//check to see which edition we are installed on and enable/disable team_security as appropriate | |
global $sugar_flavor; |
This file contains 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 | |
// Jason Eggers - SugarOutfitters.com | |
// /custom/modules/Import/views/view.step4.php | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
/** | |
* @author eggsurplus | |
* | |
* Override to set ID based on email address match | |
*/ |
NewerOlder