summaryrefslogtreecommitdiff
path: root/modules/field_ui
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-03 05:27:18 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-03 05:27:18 +0000
commitae842168f9a9b7227fe7eae8e79928b4d3b70d4e (patch)
tree4e4f648cfe4b18a7fa1a5764a3d6cb6b442ffb32 /modules/field_ui
parenta986e349fa3676fce41f2aa02fb7b67fc24dacda (diff)
downloadbrdo-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/field_ui')
-rw-r--r--modules/field_ui/field_ui.admin.inc22
1 files changed, 17 insertions, 5 deletions
diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc
index b422288b9..b22390551 100644
--- a/modules/field_ui/field_ui.admin.inc
+++ b/modules/field_ui/field_ui.admin.inc
@@ -110,17 +110,29 @@ function field_ui_field_overview_form($form, &$form_state, $obj_type, $bundle) {
'#markup' => $instance['field_name'],
),
'type' => array(
- '#markup' => l(t($field_types[$field['type']]['label']), $admin_field_path . '/field-settings', array('attributes' => array('title' => t('Edit field settings.')))),
+ '#type' => 'link',
+ '#title' => t($field_types[$field['type']]['label']),
+ '#href' => $admin_field_path . '/field-settings',
+ '#options' => array('attributes' => array('title' => t('Edit field settings.'))),
),
'widget_type' => array(
- '#markup' => l(t($widget_types[$instance['widget']['type']]['label']), $admin_field_path . '/widget-type', array('attributes' => array('title' => t('Change widget type.')))),
+ '#type' => 'link',
+ '#title' => t($widget_types[$instance['widget']['type']]['label']),
+ '#href' => $admin_field_path . '/widget-type',
+ '#options' => array('attributes' => array('title' => t('Change widget type.'))),
),
'edit' => array(
- '#markup' => l(t('edit'), $admin_field_path, array('attributes' => array('title' => t('Edit instance settings.')))),
+ '#type' => 'link',
+ '#title' => t('edit'),
+ '#href' => $admin_field_path,
+ '#options' => array('attributes' => array('title' => t('Edit instance settings.'))),
),
'delete' => array(
- '#markup' => l(t('delete'), $admin_field_path . '/delete', array('attributes' => array('title' => t('Delete instance.')))),
- ),
+ '#type' => 'link',
+ '#title' => t('delete'),
+ '#href' => $admin_field_path . '/delete',
+ '#options' => array('attributes' => array('title' => t('Delete instance.'))),
+ ),
'weight' => array(
'#type' => 'textfield',
'#default_value' => $weight,