textfield

Events happening in the community are now at Drupal community events on www.drupal.org.

Drupal 6 Form API - setting #size doesn't seem to set for me?

Posted by texas-bronius on January 13, 2011 at 5:21pm

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' => '

Read more

Drupal 6 Form API - setting #size doesn't seem to set for me?

Posted by texas-bronius on January 13, 2011 at 5:20pm

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' => '

Read more

Development release of Internet Archive module up

Posted by civicpixel on September 7, 2010 at 4:31pm

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 more

CCK Fields - Controling maximum number of values users can enter for this field.

Posted by sagarun on August 24, 2010 at 11:20am

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 more
1 comment Categories: , ,

CCK text field with 'size' attribute

Posted by usonian on March 19, 2009 at 2:47pm

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
6 comments Categories: , ,
Subscribe with RSS Syndicate content

AltStyle によって変換されたページ (->オリジナル) /