You are here

public static function RulesDataUIURI::inputForm in Rules 7.2

Implements RulesDataDirectInputFormInterface::inputForm().

Overrides RulesDataUIText::inputForm

File

ui/ui.data.inc, line 472
Contains data type related forms.

Class

RulesDataUIURI
UI for the URI type parameter.

Code

public static function inputForm($name, $info, $settings, RulesPlugin $element) {
  $form = parent::inputForm($name, $info, $settings, $element);
  $form[$name]['#rows'] = 1;
  $form[$name]['#description'] = t('You may enter relative URLs like %url as well as absolute URLs like %absolute-url.', array(
    '%url' => 'user/login?destination=node',
    '%absolute-url' => 'https://www.drupal.org',
  ));
  return $form;
}