function rules_action_data_set_validate
Custom validation callback for the data set action.
Related topics
File
-
modules/
data.rules.inc, line 279
Code
function rules_action_data_set_validate(RulesAbstractPlugin $element) {
$element->settings += array(
'data:select' => NULL,
);
$info = $element->applyDataSelector($element->settings['data:select'])
->info();
if (strpos($element->settings['data:select'], ':') !== FALSE && empty($info['setter callback'])) {
throw new RulesIntegrityException(t("The selected data property doesn't support writing."), array(
$element,
'parameter',
'data',
));
}
}