You are here

public function RulesConditionalEmptyUI::form in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.ui.inc \RulesConditionalEmptyUI::form()

File

includes/rules_conditional.ui.inc, line 40
Plugin UI implementation.

Class

RulesConditionalEmptyUI
Empty UI for doing nothing with the plugin.

Code

public function form(&$form, &$form_state, $options = array(), $iterator = NULL) {

  // Save element.
  $this->element
    ->save();

  // Redirect right away.
  $path = RulesPluginUI::defaultRedirect($this->element);
  drupal_goto($path);
}