Skip to content

Commit b03f817

Browse files
authored
Merge pull request #2 from Jaesin/8.x-1.x
Most things are there and working.
2 parents 8c7f979 + 9f31049 commit b03f817

File tree

102 files changed

+4876
-4263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+4876
-4263
lines changed

.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

CHANGELOG.txt

Lines changed: 86 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,90 @@
11
Marketo MA Changelog
22
---------------------
33

4-
Marketo MA 8.x-1.x, 2016-08-31
4+
Marketo MA 7.x-1.x, 2016-08-13
55
------------------------------
6-
- Initial 8.x-1.x version created from 7.x-2.x commit eeb522a40cd083973e360ccb5157fa512911b939
6+
- drush mma-fields now requires drush 6 or higher and allows display of
7+
additional field attributes. See 'drush help mma-fields'.
8+
- #2335897: Hooks added to provide modules an opportunity to modify lead data.
9+
- #2190655: Introduced Marketo Forms 2.0 tracking method for Webforms. Webforms
10+
can now override the default tracking method and when using Forms 2.0 can
11+
specify the Marketo form which should be targeted.
12+
- #2507733: User Integration now allow mapping core user object fields.
13+
- #2567255: Resolved undefined property error when saving user object.
14+
- #2765039: Ensure Marketo javascript is only loaded once.
15+
16+
Marketo MA 7.x-1.5, 2014-08-20
17+
------------------------------
18+
- #2293425: SOAP request/response XML now included in log on syncLead errors
19+
- Cleanup additional variables on uninstall
20+
- Addition of automated testing with Behat and Travis
21+
22+
Marketo MA 7.x-1.4, 2014-08-20
23+
------------------------------
24+
- No change. Bad version.
25+
26+
Marketo MA 7.x-1.3, 2014-04-21
27+
------------------------------
28+
- #2137397: Tracking will now be OFF when role visibility is set to
29+
"Only the roles selected below" and no roles are selected
30+
- #2135305: Removed mma-get-activity from drush commands and moved functionality
31+
to improved mma-get-lead command. Activity is now retrieved by adding the
32+
--activity option to mma-get-lead.
33+
- #2139977: Corrected issue related to removal of a mapped field from the field
34+
definition list. When a field is removed, any currently mapped fields will
35+
remain intact and display as an "Undefined Field (fieldname)".
36+
- #2140487: Message is now displayed when webform configuration has been saved.
37+
- #2142243: Permission "administer marketo webform settings" now works properly.
38+
- #2215199: Undefined index no longer returned on webform submissions with
39+
unmapped fields.
40+
41+
Marketo MA 7.x-1.2, 2013-11-14
42+
------------------------------
43+
- Updated README.txt to reflect changes since 7.x-1.1
44+
45+
Marketo MA 7.x-1.2-beta3, 2013-11-13
46+
------------------------------
47+
- #2132635: Improved webform configuration experience
48+
Configuration is now managed on a single page at node/{ID}/webform/marketo
49+
- Performance improvements for Marketo MA Webform module
50+
- #2133163: Corrected method for determining active flag
51+
- #2134953: Fixed undefined variables when SOAP API not configured
52+
53+
Marketo MA 7.x-1.2-beta2, 2013-11-09
54+
------------------------------
55+
- #2127663: Updated default value of user action triggers to be "on"
56+
- #2127679: 0 now displayed in column when no webform components are mapped
57+
- #2127659: Display message when no fields are available to be mapped
58+
- Refactored where constants are defined
59+
- #2130395: Resolved undefined index on webform component sort
60+
- Users with only a single lead activity record and users associated with more
61+
than one lead will now display lead information properly
62+
- #2132165: Remove field from fieldmap on delete
63+
64+
Marketo MA 7.x-1.2-beta1, 2013-11-04
65+
------------------------------
66+
- #2053673: Handle submission structure changes made in Webform 4.x
67+
- #2062165: Added CHANGELOG.txt
68+
- #2062181: Create rule action to retrieve lead data from Marketo
69+
Rule action "Add data to Marketo lead" has been changed
70+
to "Send lead data to Marketo" and underlying function has changed name
71+
from "add_lead" to "marketo_ma_rules_action_add_lead".
72+
- #2066465: Added basic drush support
73+
- #2068255: Added keyType auto-detection when querying Marketo for lead data.
74+
Function "_marketo_ma_get_lead" renamed to "marketo_ma_get_lead", it is safe
75+
to call this function directly.
76+
- #2067857: Variable marketo_ma_webform_fields_soap is now deleted upon uninstall
77+
- #2067861: Added ability to view lead and activity information for a given user
78+
- #2123391: Modified marketo_ma_add_lead function to pass marketoCookie param
79+
_mkto_trk cookie value will now be sent to Marketo when using either of the
80+
SOAP methods and the request to save the lead was made by either an anonymous
81+
visitor or by the lead updating their own data.
82+
- #2126019: Added settings for including or excluding tracking based on user role
83+
- Reorganized admin settings form to use vertical tabs and display more
84+
information related to webform configuration.
85+
- #2123395: Added default rules which can be used as examples or extended to do
86+
something more useful, perhaps adding more data to the list of values being
87+
sent. If using the marketo_ma_user module these three rules should not be used
88+
as they duplicate functionality already in place.
89+
- #2126709: The marketo_ma_user module now allows for mapping user fields to
90+
Marketo fields and defining which events should trigger updates.

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@ This module adds Marketo tracking capability to your Drupal site.
44

55
## Requirements
66

7-
- Drupal 7.x
8-
- An active Marketo account http://www.marketo.com/
7+
- Drupal 8.x
8+
- Composer <https://getcomposer.org/>
9+
- An active Marketo account <http://www.marketo.com/>
910

1011
## Installation
1112

12-
1. Copy the entire marketo_ma directory the Drupal sites/all/modules directory.
13+
1. Copy the entire `marketo_ma` directory the Drupal `modules` directory. You
14+
can optionally user drush to download with `drush dl marketo_ma`.
1315

14-
2. Login as an administrator. Enable the Marketo MA module in
16+
2. Add the SOAP API library to drupal using `composer require
17+
dchesterton/marketo-rest-api:dev-master`.
18+
19+
3. Login as an administrator. Enable the Marketo MA module in
1520
"Administer" -> "Modules"
1621

17-
3. (Optional) Enable the Marketo MA User module in
22+
4. (Optional) Enable the Marketo MA User module in
1823
"Administer" -> "Modules"
1924

20-
4. (Optional) Enable the Marketo MA Webform module in
25+
5. (Optional) Enable the Marketo MA Webform module in
2126
"Administer" -> "Modules"
2227

2328

@@ -103,7 +108,7 @@ and [Export a List of All Marketo API Field Names](http://community.marketo.com/
103108
**Marketo Fields**
104109
This section should contain a pipe "|" delimited list of the fields in the format
105110
"[Field API Name]|[Friendly Label]". Example:
106-
111+
107112
FirstName|First Name
108113
LastName|Last Name
109114
Email|Email Address
@@ -176,13 +181,13 @@ attached to it and provides an overview of each item's current state.
176181

177182
- **Title**
178183
The title of the webform.
179-
184+
180185
- **Tracking Enabled**
181186
A Yes/No value indicating if tracking is currently enabled for this webform.
182-
187+
183188
- **Components Mapped**
184189
The number of form components that have been mapped to a Marketo field.
185-
190+
186191
- **Manage**
187192
A direct link to the Marketo component mapping page for this webform.
188193

composer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "drupal/marketo_ma",
3+
"type": "drupal-module",
4+
"description": "Integration with Marketo marketing automation software.",
5+
"keywords": ["Drupal"],
6+
"license": "GPL-2.0+",
7+
"homepage": "https://www.drupal.org/project/marketo_ma",
8+
"minimum-stability": "dev",
9+
"support": {
10+
"issues": "https://www.drupal.org/project/issues/marketo_ma",
11+
"source": "http://cgit.drupalcode.org/marketo_ma"
12+
},
13+
"repositories": [
14+
{
15+
"type": "vcs",
16+
"url": "https://github.com/Jaesin/marketo-rest-api"
17+
}
18+
],
19+
"require": {
20+
"php": ">=5.5.9",
21+
"dchesterton/marketo-rest-api" : "dev-master"
22+
}
23+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
instance_host: null
2+
logging: 0
3+
tracking_method: munchkin
4+
munchkin:
5+
javascript_library: '//munchkin.marketo.net/munchkin.js'
6+
api_private_key: null
7+
partition: Default
8+
lead_source: null
9+
account_id: null
10+
rest:
11+
batch_requests: 0
12+
client_id: ''
13+
client_secret: ''
14+
field:
15+
enabled_fields: {}
16+
tracking:
17+
request_path:
18+
negate: 1
19+
pages: "/admin\r\n/admin/*\r\n/batch\r\n/node/add*\r\n/node/*/*\r\n/user/*/*"
20+
roles:
21+
authenticated: authenticated
22+
anonymous: anonymous
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Schema for the marketo_ma.settings configuration.
2+
marketo_ma.settings:
3+
type: config_object
4+
label: 'Marketo MA configuration'
5+
mapping:
6+
instance_host:
7+
type: string
8+
label: 'Marketo Instance Host'
9+
logging:
10+
type: integer
11+
tracking_method:
12+
type: string
13+
munchkin:
14+
type: config_object
15+
label: 'Munchkin Javascript API'
16+
mapping:
17+
javascript_library:
18+
type: string
19+
api_private_key:
20+
type: string
21+
partition:
22+
type: string
23+
lead_source:
24+
type: string
25+
account_id:
26+
type: string
27+
rest:
28+
type: config_object
29+
label: 'REST API config'
30+
mapping:
31+
batch_requests:
32+
type: integer
33+
client_id:
34+
type: string
35+
client_secret:
36+
type: string
37+
field:
38+
type: config_object
39+
label: 'Field Definition config'
40+
mapping:
41+
enabled_fields:
42+
type: sequence
43+
label: 'Enabled marketo fields'
44+
sequence:
45+
type: integer
46+
label: 'Marketo field ID'
47+
tracking:
48+
type: config_object
49+
label: 'Field Definition config'
50+
mapping:
51+
request_path:
52+
type: config_object
53+
mapping:
54+
negate:
55+
type: integer
56+
label: 'Negate page paths'
57+
pages:
58+
type: string
59+
label: 'Pages'
60+
roles:
61+
type: sequence
62+
label: 'Roles'
63+
sequence:
64+
type: string
65+
label: 'Role ID'

0 commit comments

Comments
 (0)