add textarea, and convert note
[civicrm-core.git] / CRM / Contact / Form / Relationship.php
index 09be61828425de51a4a5fade493650e23c08896d..cb99e724452eca2fad9ad8477112eccf73666b76 100644 (file)
@@ -108,6 +108,20 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
    */
   public $_cdType;
 
+  /**
+   * Explicitly declare the form context.
+   */
+  public function getDefaultContext() {
+    return 'create';
+  }
+
+  /**
+   * Explicitly declare the entity api name.
+   */
+  public function getDefaultEntity() {
+    return 'Relationship';
+  }
+
   public function preProcess() {
     //custom data related code
     $this->_cdType = CRM_Utils_Array::value('type', $_GET);