Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
image_url_formatter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
image_url_formatter
Commits
f09b95da
Commit
f09b95da
authored
Sep 10, 2013
by
g089h515r806
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #[2019369], revert patch.
parent
ddfa3e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
image_url_formatter.module
image_url_formatter.module
+2
-2
No files found.
image_url_formatter.module
View file @
f09b95da
...
...
@@ -36,7 +36,7 @@ function image_url_formatter_field_formatter_info() {
$formatters
=
array
(
'image_url'
=>
array
(
'label'
=>
t
(
'Image URL'
),
'field types'
=>
array
(
'
file'
,
'
image'
,
'imagefield_crop'
),
'field types'
=>
array
(
'image'
,
'imagefield_crop'
),
'settings'
=>
array
(
'url_type'
=>
''
,
'image_style'
=>
''
,
...
...
@@ -210,7 +210,7 @@ function theme_image_url_formatter($variables) {
return
$item
[
'uri'
];
}
$output
=
file_create_url
(
$item
[
'uri'
]);
if
(
$variables
[
'image_style'
]
&&
(
$variables
[
'item'
][
'type'
]
==
'image'
||
$variables
[
'item'
][
'type'
]
==
'imagefield_crop'
)
)
{
if
(
$variables
[
'image_style'
])
{
$image
[
'style_name'
]
=
$variables
[
'image_style'
];
$output
=
image_style_url
(
$image
[
'style_name'
],
$item
[
'uri'
]);
}
...
...
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