I'm not sure this is the correct place for this inquiry, but in the development area it says "no support questions," so this is probably the most appropriate.

My question/problem relates to the number of columns in a textarea; where the default (60; specifically for a blog post) is coming from, and how to change it. Yes, I have hunted thru all my modules and include files, and even, for what little it's worth to a non-programmer like myself, consulted the Drupal API pages relevant to this issue. I have found this code:

 _form_set_class($element, $class);
  return theme('form_element', $element, '<textarea cols="'. $element['#cols'] .'" rows="'. $element['#rows'] .'" name="'. $element['#name'] .'" id="'. $element['#id'] .'" '. drupal_attributes($element['#attributes']) .'>'. check_plain($element['#value']) .'</textarea>');

but it doesn't really help, as I have no earthly idea where the "$element['#cols']" is coming from, or how to change it, and THAT is precisely what I need to know. I repeat, I am not a programmer (merely a brave and fairly experienced amateur geek), so I have no real knowledge of the php "language."

Can anyone help?

Thx!
Andria

Comments

Anonymous’s picture

deleted

govindtotla’s picture

I have just fixed this issue by adding a line to my core css - : textarea { resize:none; width:70% !important;} and also in /includes/form.inc -: if ($element['#cols'] > 30) {$element['#cols'] = 30;} in theme_textarea (line:2090) function. This is just a patch but solved my problem. :)