Skip to content
Snippets Groups Projects
Commit d01277f9 authored by Gisle Hannemyr's avatar Gisle Hannemyr
Browse files

Revert "Issue #2984644 by fmr: Content type restriction is not respected tweaks"

This reverts commit 61baaf60.
parent 3326be29
No related branches found
No related tags found
No related merge requests found
......@@ -219,11 +219,10 @@ function flexiaccess_user_submit($form, &$form_state) {
function flexiaccess_user_validate($form, &$form_state) {
$types = array_filter(variable_get('flexiaccess_types', array()));
$node = node_load($form_state['values']['add']);
if (!is_numeric($form_state['values']['add'])) {
form_set_error('add', t('Enter a node ID, or type the title and select a node from the autocomplete list.'));
return;
}
$node = node_load($form_state['values']['add']);
if (!$node) {
form_set_error('add', t('Could not find a node with ID @nid', array('@nid' => $form_state['values']['add'])));
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment