link_field_item_property_info() defines sub-properties for link fields, and the 'url' property's type is defined as 'url':

  $properties['url'] = array(
    'type' => 'url',
    'label' => t('The URL of the link.'),
    'setter callback' => 'entity_property_verbatim_set',
  );

However, the 'url' type is validated by Entity API with valid_url(). Link module allowed Drupal paths to be entered into the field, eg 'node/1', but this type prevents a path being set programmatically in the field value because it doens't validate as a url.

CommentFileSizeAuthor
#2 2558497.link_.url-property-type.patch417 bytesjoachim
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

joachim’s picture

Status: Active » Needs review
FileSize
417 bytes
renatog’s picture

Assigned: Unassigned » renatog
Status: Needs review » Reviewed & tested by the community
Issue tags: +ciandt-contrib

Make sense.

Thank you very much @joachim

  • RenatoG committed 4f099b5 on 7.x-1.x authored by joachim
    Issue #2558497 by joachim, RenatoG: property type for 'url' entity...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Commited in dev branch.

Good Work.

Regards.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.