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,
);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_widget-880926.patch | 699 bytes | OxideInteractive |
Comments
Comment #1
OxideInteractive commentedHere's a patch for node_widget-HEAD. Hope that helps!!!
Cheers,
Sunny.
Comment #2
Michsk commentedwhat does that skip checkbox do anyway? I can't figure it out.