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

sprsquish’s picture

Status: Active » Fixed

yep, that's right.

sprsquish’s picture

Status: Fixed » Closed (fixed)