[SOLVED][Drupal Views] No text area for header/footer/empty text when creating View

| | 1 min read

Drupal users who newly installed Drupal 7 with Views and CKeditor discovered that there is no text area for header/footer/ & there is empty text when creating a View. The problem was found to lie with Views since CKeditor was working correctly on the other areas. If you are enountering the same situation in your Drupal website then read on to find out the solution.

Here is the code that forces the fallback format that worked for most Drupal users facing this issue. Implement it in your custom module.

/**
 * Implements hook_form_alter() for the views_ui_config_item_form.
 * to set the default text format to the fallback format
 * to prevent wysiwyg module from breaking views ui text areas.
 */
function YOURMODULE_form_views_ui_config_item_form_alter(&$form, &$form_state) {
  if ($form['options']['content']['#format'] != 'php_code') {
    $form['options']['content']['#format'] = filter_fallback_format();
  }
}

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.