/**
  * Overridden parent method to build form
  *
  * @access public
  */
 public function buildQuickForm()
 {
     $this->add('hidden', 'rule_condition_id');
     $membershipTypes = CRM_Civirules_Utils::getMembershipTypes();
     $membershipTypes[0] = ts('- select -');
     asort($membershipTypes);
     $this->add('select', 'membership_type_id', ts('Membership Type'), $membershipTypes, true);
     $this->add('select', 'operator', ts('Operator'), array('equals', 'is not equal to'), true);
     $this->addButtons(array(array('type' => 'next', 'name' => ts('Save'), 'isDefault' => TRUE), array('type' => 'cancel', 'name' => ts('Cancel'))));
 }