Commit a81a4c91 authored by John Fiala's avatar John Fiala
Browse files

Issue #2123277 by zhuber:Link devel generate was applying titles to links with no title set.

parent cc5979bf
......@@ -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;
}
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