I looked at theme_weight and what happens there is conceptually wrong. Here is the correct solution.

CommentFileSizeAuthor
process_weight.patch1.58 KBchx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)
romca’s picture

Version: x.y.z » 5.1
Status: Closed (fixed) » Postponed (maintainer needs more info)

I am using more complicated design to render forms, basically, the form is inside a table, some rows contain the form elements, some rows just display values. As I was using theme function, I am missing theme_weight function now. Could anybody help me to render just that weight selection box and not render the whole form please?

something like:


        theme('weight', array (        
          '#type' => 'weight',
          '#name' => 'edit[node_weight][' . $node->nid . ']',
          '#id' => 'edit-node_weight][' . $node->nid,
          '#delta' => 10,
          '#default_value' => $node->article_weight,
          '#parents' => array (
            'node_weight][' . $node->nid
            )
          )
        ), 
dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Considering that no new tasks will be completed against D5 and that no one has shown any interest in this issue for a long time, I am closing this issue ticket.