function rules_action_path_alias_validate in Rules 6
Related topics
File
- rules/
modules/ path.rules_forms.inc, line 101 - Rules configuration forms for the path module
Code
function rules_action_path_alias_validate($form, $form_state) {
if (empty($form_state['values']['settings']['src']) && empty($form_state['values']['settings']['dst'])) {
form_set_error('settings][src', t('You have to enter at least eiter an existing system path or a path alias.'));
}
}