instance['settings']['display_summary']; $element['summary'] = array( '#type' => $display_summary ? 'textarea' : 'value', '#default_value' => isset($items[$delta]['summary']) ? $items[$delta]['summary'] : NULL, '#title' => t('Summary'), '#rows' => $this->getSetting('summary_rows'), '#description' => t('Leave blank to use trimmed value of full text as the summary.'), '#attached' => array( 'js' => array(drupal_get_path('module', 'text') . '/text.js'), ), '#attributes' => array('class' => array('text-summary')), '#prefix' => '