diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-03 05:27:18 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-03 05:27:18 +0000 |
commit | ae842168f9a9b7227fe7eae8e79928b4d3b70d4e (patch) | |
tree | 4e4f648cfe4b18a7fa1a5764a3d6cb6b442ffb32 /modules/profile | |
parent | a986e349fa3676fce41f2aa02fb7b67fc24dacda (diff) | |
download | brdo-ae842168f9a9b7227fe7eae8e79928b4d3b70d4e.tar.gz brdo-ae842168f9a9b7227fe7eae8e79928b4d3b70d4e.tar.bz2 |
#602522 by effulgentsia, sun, and moshe weitzman: Make links in renderable arrays and forms (e.g. 'Operations') alterable.
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/profile.admin.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc index 227e10881..90bc39f85 100644 --- a/modules/profile/profile.admin.inc +++ b/modules/profile/profile.admin.inc @@ -26,8 +26,8 @@ function profile_admin_overview($form) { $form[$field->fid]['type'] = array('#markup' => $field->type); $form[$field->fid]['category'] = array('#type' => 'select', '#default_value' => $field->category, '#options' => array()); $form[$field->fid]['weight'] = array('#type' => 'weight', '#default_value' => $field->weight); - $form[$field->fid]['edit'] = array('#markup' => l(t('edit'), "admin/config/people/profile/edit/$field->fid")); - $form[$field->fid]['delete'] = array('#markup' => l(t('delete'), "admin/config/people/profile/delete/$field->fid")); + $form[$field->fid]['edit'] = array('#type' => 'link', '#title' => t('edit'), '#href' => "admin/config/people/profile/edit/$field->fid"); + $form[$field->fid]['delete'] = array('#type' => 'link', '#title' => t('delete'), '#href' => "admin/config/people/profile/delete/$field->fid"); } // Add the category combo boxes @@ -51,6 +51,7 @@ function profile_admin_overview($form) { } $form['#tree'] = TRUE; + // @todo: Any reason this isn't done using an element with #theme = 'links'? $addnewfields = '<h2>' . t('Add new field') . '</h2>'; $addnewfields .= '<ul>'; foreach (_profile_field_types() as $key => $value) { |