You are here

class RulesDataUIListToken in Rules 7.2

UI for lists of tokens.

Hierarchy

Expanded class hierarchy of RulesDataUIListToken

1 string reference to 'RulesDataUIListToken'
rules_rules_core_data_info in modules/rules_core.rules.inc
Implements hook_rules_data_info() on behalf of the pseudo rules_core module.

File

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

View source
class RulesDataUIListToken extends RulesDataUIListInteger {

  /**
   * Implements RulesDataDirectInputFormInterface::inputForm().
   */
  public static function inputForm($name, $info, $settings, RulesPlugin $element) {
    $form = parent::inputForm($name, $info, $settings, $element);
    if ($form[$name]['#type'] == 'textarea') {
      $form[$name]['#description'] = t('A list of text tokens, separated by commas. E.g. enter "one, two, three".');
      $form[$name]['#element_validate'] = array(
        'rules_ui_element_token_list_validate',
      );
    }
    return $form;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RulesDataUI::getTypeInfo public static function Returns the data type and parameter information for the given arguments.
RulesDataUI::renderOptionsLabel public static function Renders the value with a label if an options list is available.
RulesDataUI::selectionForm public static function Provides the selection form for a parameter.
RulesDataUIListText::getDefaultMode public static function Overrides RulesDataUI::getDefaultMode(). Overrides RulesDataUIText::getDefaultMode
RulesDataUIListText::render public static function Implements RulesDataDirectInputFormInterface::render(). Overrides RulesDataUIText::render
RulesDataUIListToken::inputForm public static function Implements RulesDataDirectInputFormInterface::inputForm(). Overrides RulesDataUIListInteger::inputForm