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
1b1ea9c3
Commit
1b1ea9c3
authored
Apr 16, 2007
by
Nathan Haug
Browse files
Changing rel=nofollow checkbox into textfield. Issue #130098.
parent
830f1f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
link.module
link.module
+4
-7
No files found.
link.module
View file @
1b1ea9c3
...
...
@@ -80,13 +80,10 @@ function link_field_settings($op, $field) {
'#options'
=>
$target_options
,
);
$form
[
'attributes'
][
'rel'
]
=
array
(
'#type'
=>
'checkbox'
,
'#return_value'
=>
'nofollow'
,
'#prefix'
=>
'<div class="form-item"><label>Nofollow Value: </label>'
,
'#suffix'
=>
'</div>'
,
'#title'
=>
t
(
'Add rel="nofollow" Attribute'
),
'#description'
=>
t
(
'The <a href="http://en.wikipedia.org/wiki/Nofollow">rel="nofollow" attribute</a> prevents some search engines from spidering entered links.'
),
'#default_value'
=>
isset
(
$field
[
'attributes'
][
'rel'
])
?
$field
[
'attributes'
][
'rel'
]
:
false
,
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Rel Attribute'
),
'#description'
=>
t
(
'When output, this link will have this rel attribute. The most common usage is the <a href="http://en.wikipedia.org/wiki/Nofollow">rel="nofollow"</a> which prevents some search engines from spidering entered links.'
),
'#default_value'
=>
isset
(
$field
[
'attributes'
][
'rel'
])
?
$field
[
'attributes'
][
'rel'
]
:
''
,
);
$form
[
'attributes'
][
'class'
]
=
array
(
'#type'
=>
'textfield'
,
...
...
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