Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
link
Commits
a81a4c91
Commit
a81a4c91
authored
Nov 17, 2013
by
John Fiala
Browse files
Issue #2123277 by zhuber:Link devel generate was applying titles to links with no title set.
parent
cc5979bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
link.devel_generate.inc
link.devel_generate.inc
+5
-2
No files found.
link.devel_generate.inc
View file @
a81a4c91
...
...
@@ -21,9 +21,12 @@ function link_devel_generate($object, $field, $instance, $bundle) {
* Callback for hook_devel_generate().
*/
function
_link_devel_generate
(
$object
,
$field
,
$instance
,
$bundle
)
{
return
array
(
$link
=
array
(
'url'
=>
url
(
'<front>'
,
array
(
'absolute'
=>
TRUE
)),
'title'
=>
devel_create_greeking
(
mt_rand
(
1
,
3
),
TRUE
),
'attributes'
=>
_link_default_attributes
(),
);
if
(
$instance
[
'settings'
][
'title'
]
!=
'none'
)
{
$link
[
'title'
]
=
devel_create_greeking
(
mt_rand
(
1
,
3
),
TRUE
);
}
return
$link
;
}
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