Hi there,

We have used node-widget on several projects and it worked great. However I have noticed that when editing a node with multiple node-widgets, I end up ticking every skip checkboxes because I was not actually editing the content in node-widget at that time.

So I thought it is nicer if the skip checkboxes are ticked by default, whereas delete checkboxes are unticked.

Here's a simple patch in node_widget.form.inc:

  $remove_label = ($node->nid) ? t('Delete') : t('Skip');
  $form['remove'] = array(
    '#type' => 'checkbox',
    '#title' => $remove_label,
    '#prefix' => '<div class="node-widget-remove">',
    '#suffix' => '</div>',
    '#default_value' => empty($node->nid),
    '#weight' => -99,
  );
CommentFileSizeAuthor
#1 node_widget-880926.patch699 bytesOxideInteractive

Comments

OxideInteractive’s picture

Status: Needs review » Active
StatusFileSize
new699 bytes

Here's a patch for node_widget-HEAD. Hope that helps!!!

Cheers,
Sunny.

Michsk’s picture

what does that skip checkbox do anyway? I can't figure it out.