Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
crm_core
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
crm_core
Commits
eba93568
Commit
eba93568
authored
May 7, 2013
by
Kirill Roskolii
Browse files
Options
Downloads
Patches
Plain Diff
Added description to primary fields configuration.
parent
692dedc7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/crm_core_contact/crm_core_contact.admin.inc
+14
-0
14 additions, 0 deletions
modules/crm_core_contact/crm_core_contact.admin.inc
with
14 additions
and
0 deletions
modules/crm_core_contact/crm_core_contact.admin.inc
+
14
−
0
View file @
eba93568
...
...
@@ -72,11 +72,25 @@ function crm_core_contact_type_form($form, &$form_state, $contact_type) {
'#rows'
=>
3
,
);
// Primary fields section.
$form
[
'contact_type'
][
'primary_fields_container'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Primary Fields'
),
);
$form
[
'contact_type'
][
'primary_fields_container'
][
'description_wrapper'
]
=
array
(
'#type'
=>
'container'
,
);
$primary_fields_description
=
'Primary fields are used to tell other modules'
.
' what fields to use for common communications tasks such as sending an'
.
' email, addressing an envelope, etc. Use the fields below to indicate'
.
' the primary fields for this contact type.'
;
$form
[
'contact_type'
][
'primary_fields_container'
][
'description_wrapper'
]
=
array
(
'#markup'
=>
t
(
$primary_fields_description
),
);
// @todo Move primary fields array to some hook. This Would allow extend this
// list to other modules. This hook should return arra('key'=>t('Name')).
$default_primary_fields
=
array
(
'email'
,
'address'
,
'phone'
);
$primary_fields
=
variable_get
(
'crm_core_contact_default_primary_fields'
,
$default_primary_fields
);
$options
=
array
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment