How do I create a field instance with a default value?

This doesn't seem to work:

function _clclone_installed_instances() {
  $t = get_t();
  return array(
    'clclone_heading' => array(
      'default_value'  => 'DEFAULT',
      'field_name'  => 'clclone_heading',
      'label'       => $t('Heading:'),
      'type'        => 'text',
      'widget'      => array(
        'type'    => 'text_textfield',
      ),

D6 problems with PHP 5.3 - revert to PHP 5.2 or upgrade Drupal to ver 7?

Give the PHP version issues im running into with D6, Im now looking at simply moving to D7 as a solution. Has anyone went this route instead of trying to revert to an earlier version of PHP?

Drupal 7 for Production Websites Part 3: How you can help - now published

Phew, the last part in my series of post about Drupal 7 being ready for productions websites as now publish. Warning, its quite a big one :)

Here is the index for all three parts:

Form placement with CSS

Hello, I am a bit lost on how to set a custom placement for my modules form and am hoping to be pointed in the right direction, or even see some topical examples. Thanks!

Integrating Drupal with Sabre Travel GDS

Has anyone ever integrated any of the Sabre GDS products (Travel Solution) into Drupal? I'll like to know about how this is done or get ideas. Please respond if you have or know someone that has done. I'd like to know which of the Sabre product is easiest to work with i.e. integrate into Drupal.

Article modification - Drupal 7

Hi, guys. Drupal newbie here - started using version 7 recently. First of all, I wanted to ask the best way to modify the article node to get an image thumbnail to stay at the right side of the text (slashdot style). I think the imagepicker module is supposed to permit you to do that, but it gave me an error message along the lines of, "Error while creating a thumbnail for uploaded image." Seems like a permission problem, but not sure how to sort it out.

Also, I wanted to ask if you have any recommendations for web hosting. Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x