diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-12 07:00:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-12 07:00:03 +0000 |
commit | 036dc1d14033b2e76e0a114e342de6cb9d205fa8 (patch) | |
tree | 9673c0f54b99b68b42838d1985530c236d131e46 | |
parent | b1d8b53a1b6e6fc5b34324a89910d9c70a350b52 (diff) | |
download | brdo-036dc1d14033b2e76e0a114e342de6cb9d205fa8.tar.gz brdo-036dc1d14033b2e76e0a114e342de6cb9d205fa8.tar.bz2 |
- Patch #552654 by jhedstrom: usability improvement: add 'Manage fields' and 'Display fields' links from the Content Types operation table.
-rw-r--r-- | modules/node/content_types.inc | 12 |
1 files changed, 11 insertions, 1 deletions
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; } } |