function multiple_registration_is_field_accessible in Multiple Registration 7
Check is field accessible by user.
Parameters
array $instance: Field instance data array.
Return value
bool Return TRUE, if field accesible, FALSE - if is not accessible.
2 calls to multiple_registration_is_field_accessible()
File
- ./
multiple_registration.module, line 544 - Add ability to create several registration pages.
Code
function multiple_registration_is_field_accessible(array $instance) {
// For registration form.
if (!user_is_logged_in()) {
return _multiple_registration_is_field_accessible_for_not_logged_in($instance);
}
else {
return _multiple_registration_is_field_accessible_for_logged_in($instance);
}
}