Skip to content
Snippets Groups Projects
Commit 83e7619b authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-306] Merging test into staging -c1495

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@1496 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 1f998ebf
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ function unl_element_info_alter(&$type) {
*/
function unl_filter_process_format($element) {
// Only remove the plain_text and filtered_html options on the node edit form. They need to be available on comment forms, etc.
if ($element['#entity_type'] == 'node') {
if (isset($element['#entity_type']) && $element['#entity_type'] == 'node') {
unset($element['format']['format']['#options']['plain_text']);
unset($element['format']['format']['#options'][1]); // On production the machine names are integers
unset($element['format']['format']['#options']['filtered_html']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment