You are here

public function RulesLoopUI::buildContent in Rules 7.2

Implements RulesPluginUIInterface.

Shows a preview of the configuration settings.

Overrides RulesContainerPluginUI::buildContent

File

ui/ui.plugins.inc, line 249
Contains UI for diverse plugins provided by Rules.

Class

RulesLoopUI
UI for Rules loops.

Code

public function buildContent() {
  $content = parent::buildContent();
  $content['description']['item'] = array(
    '#caption' => t('List item'),
    '#theme' => 'rules_content_group',
  );
  $content['description']['item']['var'] = array(
    '#theme' => 'rules_variable_view',
    '#info' => $this->element
      ->listItemInfo(),
    '#name' => $this->element->settings['item:var'],
  );
  return $content;
}