From 036dc1d14033b2e76e0a114e342de6cb9d205fa8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Nov 2009 07:00:03 +0000 Subject: - Patch #552654 by jhedstrom: usability improvement: add 'Manage fields' and 'Display fields' links from the Content Types operation table. --- modules/node/content_types.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 4d23857f9..e088d33fa 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -12,7 +12,8 @@ function node_overview_types() { $types = node_type_get_types(); $names = node_type_get_names(); - $header = array(t('Name'), array('data' => t('Operations'), 'colspan' => '2')); + $field_ui = module_exists('field_ui'); + $header = array(t('Name'), array('data' => t('Operations'), 'colspan' => $field_ui ? '4' : '2')); $rows = array(); foreach ($names as $key => $name) { @@ -23,6 +24,14 @@ function node_overview_types() { // Set the edit column. $row[] = array('data' => l(t('edit'), 'admin/structure/types/manage/' . $type_url_str)); + if ($field_ui) { + // Manage fields. + $row[] = array('data' => l(t('manage fields'), 'admin/structure/types/manage/' . $type_url_str . '/fields')); + + // Display fields. + $row[] = array('data' => l(t('manage display'), 'admin/structure/types/manage/' . $type_url_str . '/display')); + } + // Set the delete column. if ($type->custom) { $row[] = array('data' => l(t('delete'), 'admin/structure/types/manage/' . $type_url_str . '/delete')); @@ -30,6 +39,7 @@ function node_overview_types() { else { $row[] = array('data' => ''); } + $rows[] = $row; } } -- cgit v1.2.3