init
This commit is contained in:
12
custom/modules/Leads2/logic_hooks.php
Executable file
12
custom/modules/Leads2/logic_hooks.php
Executable file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
// Do not store anything in this file that is not part of the array or the hook version. This file will
|
||||
// be automatically rebuilt in the future.
|
||||
$hook_version = 1;
|
||||
$hook_array = Array();
|
||||
// position, file, function
|
||||
$hook_array['before_save'] = Array();
|
||||
$hook_array['before_save'][] = Array(1, 'Leads push feed', 'modules/Leads/SugarFeeds/LeadFeed.php','LeadFeed', 'pushFeed');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
176
custom/modules/Leads2/metadata/detailviewdefs.php
Executable file
176
custom/modules/Leads2/metadata/detailviewdefs.php
Executable file
@@ -0,0 +1,176 @@
|
||||
<?php
|
||||
// created: 2013-03-19 13:56:50
|
||||
$viewdefs = array (
|
||||
'Leads' =>
|
||||
array (
|
||||
'DetailView' =>
|
||||
array (
|
||||
'templateMeta' =>
|
||||
array (
|
||||
'form' =>
|
||||
array (
|
||||
'buttons' =>
|
||||
array (
|
||||
0 => 'EDIT',
|
||||
1 => 'DUPLICATE',
|
||||
2 => 'DELETE',
|
||||
3 =>
|
||||
array (
|
||||
'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">',
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
|
||||
),
|
||||
),
|
||||
'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl',
|
||||
),
|
||||
'maxColumns' => '2',
|
||||
'widths' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'label' => '10',
|
||||
'field' => '30',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'file' => 'modules/Leads/Lead.js',
|
||||
),
|
||||
),
|
||||
),
|
||||
'panels' =>
|
||||
array (
|
||||
'LBL_CONTACT_INFORMATION' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'full_name',
|
||||
'label' => 'LBL_NAME',
|
||||
),
|
||||
1 => 'phone_work',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
0 => 'title',
|
||||
1 => 'phone_mobile',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
0 => 'department',
|
||||
1 => 'phone_fax',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'account_name',
|
||||
'displayParams' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 => 'website',
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'primary_address_street',
|
||||
'label' => 'LBL_PRIMARY_ADDRESS',
|
||||
'type' => 'address',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'key' => 'primary',
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'alt_address_street',
|
||||
'label' => 'LBL_ALTERNATE_ADDRESS',
|
||||
'type' => 'address',
|
||||
'displayParams' =>
|
||||
array (
|
||||
'key' => 'alt',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
0 => 'email1',
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
0 => 'description',
|
||||
),
|
||||
),
|
||||
'LBL_PANEL_ADVANCED' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
0 => 'status',
|
||||
1 => 'lead_source',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
0 => 'status_description',
|
||||
1 => 'lead_source_description',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
0 => 'opportunity_amount',
|
||||
1 => 'refered_by',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'campaign_name',
|
||||
'label' => 'LBL_CAMPAIGN',
|
||||
),
|
||||
1 => 'do_not_call',
|
||||
),
|
||||
),
|
||||
'LBL_PANEL_ASSIGNMENT' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'assigned_user_name',
|
||||
'label' => 'LBL_ASSIGNED_TO',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'name' => 'date_modified',
|
||||
'label' => 'LBL_DATE_MODIFIED',
|
||||
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'name' => 'date_entered',
|
||||
'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user