Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b13398fa
Commit
b13398fa
authored
Mar 30, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 30, 2015
Browse files
Merge "Adding another filter/match for google spreadsheets (Bug #1435750)"
parents
7ee7c441
d0e183a5
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/blocktype/googleapps/lib.php
View file @
b13398fa
...
...
@@ -209,6 +209,14 @@ class PluginBlocktypeGoogleApps extends SystemBlocktype {
'url'
=>
$httpstr
.
'://docs.google.com/$1document/d/$2/pub?embedded=true'
,
'type'
=>
'iframe'
,
),
// docs.google.com/spreadsheets - Google document (updated on Mar 2015)
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the spreadsheet
array
(
'match'
=>
'#.*docs.google.com/([a-zA-Z0-9\_\-\.\/]*)spreadsheets/d/([a-zA-Z0-9\_\-]+).*#'
,
'url'
=>
$httpstr
.
'://docs.google.com/$1spreadsheets/d/$2/pub?embedded=true'
,
'type'
=>
'iframe'
,
),
// docs.google.com - Google spreadsheet document (updated on Mar 2013)
// $1 - domain, e.g. /a/domainname/ (optional)
// $2 - key of the document
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment