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.
if (empty($record) || ($record->profile_id != $entity->profile_id)) {
$links['default'] = array(
'#markup' => l('set as default', 'user/' .$user->uid. '/addressbook/' . $entity->type . '/default/' . $entity->profile_id . '/nojs', array('attributes' => array('class' => array('use-ajax')))),
'#suffix' => ' | ',
);
}
$links['edit'] = array(
'#markup' => l('edit', 'user/' .$user->uid. '/addressbook/' . $entity->type . '/edit/' . $entity->profile_id),
'#suffix' => ' | ',
);
$links['delete'] = array('#markup' => l('delete', 'user/' .$user->uid. '/addressbook/' . $entity->type . '/delete/' . $entity->profile_id));
link labels must be wrapped in t('')
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedAlready fixed. Update to RC2 or the latest -dev.