It seems that this necessary function is completely missing from the 3.x release. It is called on the Relationship Settings page and there is an error b/c the function is called but missing.

The first call to this function is in user_relationships_ui.forms.inc on line 42.

Here is the missing function which I found in the 2.x version. After I added it to the above file, everything seems to work fine.

/**
 * Helper function to build the settings form for the notification messages
 */
function _user_relationships_message_settings_form(&$form, $defaults = array()) {
  foreach ($defaults as $key => $value) {
    if (is_array($value)) {
      $form[$key] = array(
        '#type'         => 'fieldset',
        '#title'        => ucfirst(str_replace('_',' ',$key)),
        '#collapsible'  => TRUE,
        '#collapsed'    => TRUE
      );
      _user_relationships_message_settings_form($form[$key], $value);
    }
    else {
      $form["user_relationships_msg_{$key}"] = array(
        '#type'           => 'textfield',
        '#title'          => ucfirst(str_replace('_',' ',$key)),
        '#default_value'  => variable_get("user_relationships_msg_{$key}", $value)
      );
    }
  }
}

Comments

jaydub’s picture

Is the 5.3 branch dead? If so then this issue can be closed.

alex.k’s picture

Status: Active » Closed (won't fix)

Not supported.