0 won't get rendered when using field integer

When I add an integer field to an nodetype the value won't render when it is 0. Is this a bug or standard behaviour?

How do I eliminate the double menu I grew in the menu at the top of the page administrator ?

How do I eliminate the double menu I grew in the menu at the top of the page administrator ?
I done many changes and I don't remember what caused the double menu.
I use Acquia to build my site

Thank you
Ehud

meta data to file object

Hi there,
need some help with this..
I try to convert a module to D7

My problem is how to save some meta dat to the file object.. What is the best hook to call the "file transfer function" is the validate hook the right one oder better hook_node_presave oder hook_field_presave?
After tranfering the file to the external server, I get the scribd_doc_id back, and this should saved to the file object.

How to solve this?

<?php  .install
/**
 * @file a schema
 */
/**
 * Implements hook_field_schema().
 */
function scribdfield_field_schema($field) {
  return array(
    'columns' => array(
      'fid' => array(
        'description' => 'The {file_managed}.fid being referenced in this field.',
        'type' => 'int',
        'not null' => FALSE,
        'unsigned' => TRUE,
      ),
      'scribd_doc_id' => array(
        'description' => 'Scribd DOC ID',
        'type' => 'int',
        'not null' => FALSE,
        '#default_value' => '0',
      ),
    ),
    'indexes' => array(
      'fid' => array('fid'),
      'scribd_doc_id' => array('scribd_doc_id'),
    ),
    'foreign keys' => array(
      'fid' => array(
        'table' => 'file_managed',
        'columns' => array('fid' => 'fid'),
      ),
    ),
  );
}


<?php .module

/**
* Implements hook_field_validate().

Simple Example of Passing variables from module to a .tpl file

Hello,

Can someone please write a very simple example of passing a variable from module to a .tpl file??

Thank you.

Photo cannot be seen

I uploaded a photo to an article and it can be seen in the Edit mode. But when I switch to the View mode the photo disappears. I have spent hours trying to solve the problem. Any suggestions are very welcome!

editor for D7 - cck a long time under development?

hello,

has anyone an idea, when cck or an other similar editor (which works together with image embedding plugins) will have an release candidate? Still see 6.x development going on and 7.x looks like staying under construktion for a looong time.

thx for feedback
anhuret

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x