Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
twilio-3358441
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
twilio-3358441
Commits
04cbd8c3
Commit
04cbd8c3
authored
9 years ago
by
Arvin Singla
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2574747
by rlmumford: Allow overriding of twilio credentials per command.
parent
14659a60
Branches
7.x-1.x
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
twilio.module
+3
-3
3 additions, 3 deletions
twilio.module
with
3 additions
and
3 deletions
twilio.module
+
3
−
3
View file @
04cbd8c3
...
...
@@ -192,9 +192,9 @@ function twilio_command($command = '', $data = array()) {
if
((
$library
=
libraries_load
(
TWILIO_LIBRARY
))
&&
!
empty
(
$library
[
'loaded'
]))
{
// Set our account_sid, auth_token, and number.
$account_sid
=
variable_get
(
'twilio_account'
,
FALSE
);
$auth_token
=
variable_get
(
'twilio_token'
,
FALSE
);
$number
=
variable_get
(
'twilio_number'
,
FALSE
);
$account_sid
=
!
empty
(
$data
[
'options'
][
'twilio_account'
])
?
$data
[
'options'
][
'twilio_account'
]
:
variable_get
(
'twilio_account'
,
FALSE
);
$auth_token
=
!
empty
(
$data
[
'options'
][
'twilio_token'
])
?
$data
[
'options'
][
'twilio_token'
]
:
variable_get
(
'twilio_token'
,
FALSE
);
$number
=
!
empty
(
$data
[
'options'
][
'twilio_number'
])
?
$data
[
'options'
][
'twilio_number'
]
:
variable_get
(
'twilio_number'
,
FALSE
);
// If we don't have one of our twilio variables don't bother doing anything.
if
(
!
$account_sid
||
!
$auth_token
||
!
$number
)
{
...
...
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