Commit 52c4fc75 authored by Dan Chadwick's avatar Dan Chadwick
Browse files

Issue #2688621 by joelstein: Added hide additional extensions field on file...

Issue #2688621 by joelstein: Added hide additional extensions field on file component if no access via form_alter.
parent 4a287a51
Loading
Loading
Loading
Loading
+2 −0
Changes for components/file.inc: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -313,12 +313,14 @@ function theme_webform_edit_file_extensions($variables) {
  }

  // Add the row for additional types.
  if (!isset($element['addextensions']['#access']) || $element['addextensions']['#access']) {
    $row = array();
    $title = $element['addextensions']['#title'];
    $element['addextensions']['#title'] = NULL;
    $row[] = array('data' => $title, 'colspan' => 2);
    $row[] = drupal_render($element['addextensions']);
    $rows[] = $row;
  }

  $header = array(array('data' => t('Category'), 'colspan' => '2'), array('data' => t('Types')));