Commit 45acc965 authored by Nathan Haug's avatar Nathan Haug
Browse files

Added rel="nofollow" attribute

parent e6c28ae3
......@@ -61,6 +61,15 @@ function link_field_settings($op, $field) {
'#default_value' => $field['attributes']['target'] ? $field['attributes']['target'] : 'default',
'#options' => $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=&quot;nofollow&quot; Attribute'),
'#description' => t('The <a href="http://en.wikipedia.org/wiki/Nofollow#rel.3Dnofollow">rel=&quot;nofollow&quot; attribute</a> prevents some search engines from spidering entered links.'),
'#default_value' => isset($field['attributes']['rel']) ? $field['attributes']['rel'] : false,
);
return $form;
case 'save':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment