Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function user_relationships_type_edit($rtid = NULL) {
if (arg(3) == "edit" && $rid >= 0) {
$relationship_type = user_relationships_relationship_type_load(array('rtid' => $rtid));
}
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Name'),
'#maxlength' => 255,
'#default_value' => $relationship_type->name,
'#description' => t("Example: buddy, friend, coworker, spouse."),
'#required' => TRUE,
'#weight' => -10,
);
//....
That should be
if (arg(3) == "edit" && $rtid >= 0) {
right?
Comments
Comment #1
sprsquish CreditAttribution: sprsquish commentedyep, that's right.
Comment #2
sprsquish CreditAttribution: sprsquish commented