Closed (won't fix)
Project:
User Relationships
Version:
5.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2008 at 21:54 UTC
Updated:
11 Nov 2010 at 20:20 UTC
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
Comment #1
jaydub commentedIs the 5.3 branch dead? If so then this issue can be closed.
Comment #2
alex.k commentedNot supported.