name, $relationship->plural_name, ($relationship->is_oneway ? t('one way') : t('mutual')), ($relationship->requires_approval ? t('yes') : t('no')), ($relationship->expires_val ? t(format_plural($relationship->expires_val, '1 day', '@count days')) : t('Never')), l(t('edit'), 'admin/user/relationships/edit/'. $relationship->rtid) . ' | ' . l(t('delete'), 'admin/user/relationships/delete/'. $relationship->rtid) ); } foreach (module_implements('user_relationships_page_alter') as $module) { $function = "{$module}_user_relationships_page_alter"; $function('types list', $page, $table); } if (!sizeof($table['rows'])) { $table['rows'][] = array(array('data' => t('No relationships available.'), 'colspan' => sizeof($table['headers']))); } $page['relationships'] = array( '#type' => 'fieldset', '#title' => t('Relationship Types'), '#weight' => 0 ); $page['relationships']['list'] = array( '#value' => theme('table', $table['headers'], $table['rows']) ); return drupal_render($page); }