Revision 76bdcd04
Added by Assos Assos almost 6 years ago
drupal7/sites/all/modules/webform/includes/webform.components.inc | ||
---|---|---|
463 | 463 |
'inline' => t('Inline'), |
464 | 464 |
'none' => t('None'), |
465 | 465 |
), |
466 |
'#description' => t('Determines the placement of the component\'s label.'),
|
|
466 |
'#description' => t("Determines the placement of the component's label."),
|
|
467 | 467 |
); |
468 | 468 |
} |
469 | 469 |
else { |
... | ... | |
855 | 855 |
} |
856 | 856 |
|
857 | 857 |
/** |
858 |
* |
|
858 |
* Delete a Webform component.
|
|
859 | 859 |
*/ |
860 | 860 |
function webform_component_delete($node, $component) { |
861 | 861 |
// Check if a delete function is available for this component. If so, |
... | ... | |
919 | 919 |
// Delete the conditional if this component is the only source / target. |
920 | 920 |
if (empty($conditional[$field])) { |
921 | 921 |
webform_conditional_delete($node, $conditional); |
922 |
// Also delete the conditional from the $node so it is not re-created |
|
923 |
// later on in webform_node_update(). |
|
924 |
unset($node->webform['conditionals'][$conditional['rgid']]); |
|
922 | 925 |
// Loop exit. |
923 | 926 |
break; |
924 | 927 |
} |
Also available in: Unified diff
Weekly update of contrib modules