Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/modules/node/content_types.inc
11 11
function node_overview_types() {
12 12
  $types = node_type_get_types();
13 13
  $names = node_type_get_names();
14
  $field_ui = module_exists('field_ui');
14
  $field_ui = module_exists('field_ui') && user_access('administer fields');
15 15
  $header = array(t('Name'), array('data' => t('Operations'), 'colspan' => $field_ui ? '4' : '2'));
16 16
  $rows = array();
17 17

  

Also available in: Unified diff