Drupal 6 Form API - setting #size doesn't seem to set for me?
For some reason my module's form's textfield is not obeying the size => 4 I'm asking it to be. Am I overlooking something (again)?
In addition to the whole code below, see the attached screenshot...
<?php
function project_calc_concrete_calculator() {
$form['instructions'] = array(
'#prefix' => '
',
'#value' => t('Enter concrete slab dimensions'),
'#suffix' => '
Drupal 6 Form API - setting #size doesn't seem to set for me?
For some reason my module's form's textfield is not obeying the size => 4 I'm asking it to be. Am I overlooking something (again)?
In addition to the whole code below, see the attached screenshot...
<?php
function project_calc_concrete_calculator() {
$form['instructions'] = array(
'#prefix' => '
',
'#value' => t('Enter concrete slab dimensions'),
'#suffix' => '
Development release of Internet Archive module up
As part of the last phase of the Knight News Challenge grant I've been working to create a module to automate transfers to Archive.org of files available to Drupal. The development release is now ready, and we're continuing to test it here at Denver Open Media. My thanks go out to John Hauser at Access Humboldt, and the team at Archive.org who helped me navigate the S3-like interface and provided invaluable feedback in regards to handling metadata.
Read moreCCK Fields - Controling maximum number of values users can enter for this field.
When creating CCK field we have an option to specify "Maximum number of values users can enter for this field." which ranges from 1-unlimited. Is there any way we can change this property when loading the cck form?
For example, i have another cck content type, which stores the number of values user can enter for a field in another content type. I want to use this number (using views) to specify the "Maximum number of values users can enter for a field." in target cck form .
Read moreCCK text field with 'size' attribute
The official stance on adding the HTML 'size' attribute to CCK text fields seems to be, "Standard Drupal behavior is to make fields 60 characters long and 95% wide. If you need to change a field length, do it in CSS or with hook_form_alter()."
Our clients don't necessarily know CSS or Drupal module development, and it seems like a no-brainer that you should be able to specify the size of a field in the field settings form. Heck, I know CSS and module development, and I'd much rather be able to just change a form value than muck with code.
Read more

