Increasing the number of rows for text area for node-body

sushilmasti - June 23, 2009 - 18:10
Project:Editview
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

First of all, thanks for such an awesome module. Modules like this make using drupal a pleasure.

I wanted to mass edit nodes of a type very similar to Page (the use case is almost identical to the one given on the Module home page for editing Pages)

I found the text area for the Body field had only 2 rows. So I looked into the code and made a change around line 149 - namely:

<?php
 
if (isset($elements[$field])) {
    if (
$elements[$field]['#type'] == 'textarea') {
     
$elements[$field]['#resizable'] = FALSE;
     
$elements[$field]['#rows'] = 20;
    }
?>

Is there a UI way to achive this? It would be cool to have more config for the module - e.g. the ability to specify the number of new node forms in the view.

Thanks again for such an effective module.

 
 

Drupal is a registered trademark of Dries Buytaert.