summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Zhgenti2013-07-09 10:26:51 (GMT)
committerDmitry Zhgenti2013-07-09 10:26:51 (GMT)
commitd13e373683b4e3db0d603f856dca6427b20b37cf (patch)
treec3f854d46510bfe4361804a617959b3576769128
parent427e102dc3d58fb36b15f8cedf7414420ca81e8e (diff)
Issue #1558736 by BWPanda: hiding of text format select box was preventing wysiwyg module from attaching editor.
-rw-r--r--text_format_access.module10
1 files changed, 2 insertions, 8 deletions
diff --git a/text_format_access.module b/text_format_access.module
index 65e1d29..9fe2089 100644
--- a/text_format_access.module
+++ b/text_format_access.module
@@ -191,17 +191,11 @@ function _text_format_access_element_process($element, $text_format_access_forma
'#title' => t('Text format'),
'#options' => $options,
'#default_value' => $element['#format'],
- '#access' => 1,
+ '#access' => TRUE,
'#weight' => 10,
'#attributes' => array('class' => array('filter-list')),
'#parents' => array_merge($element['#parents'], array('format')),
);
- if (count($options) <= 1) {
- $element['format']['#access'] = 0;
- unset($element['format']['guidelines']);
- unset($element['format']['help']);
- $element['format']['#type'] = 'container';
- }
}
return $element;
}
@@ -249,4 +243,4 @@ function theme_text_format_access_table($variables) {
$rows[] = $row;
}
return theme('table', array('header' => $element['#header'], 'rows' => $rows, 'attributes' => array('id' => 'formats-per-role')));
-} \ No newline at end of file
+}