You are here

function multiple_registration_field_access in Multiple Registration 7

Disabling form element wrappers if field is not accessible for user role.

Parameters

string $op: Current operation.

array $field: Field attributes array.

string $entity_type: Entity type.

object $entity: Entity object.

object $account: Account object.

Return value

bool

File

./multiple_registration.module, line 628
Add ability to create several registration pages.

Code

function multiple_registration_field_access($op, $field, $entity_type, $entity, $account) {
  if (variable_get('is_current_field_accessible') === FALSE) {
    variable_del('is_current_field_accessible');
    variable_set('is_current_field_accessible', TRUE);
    return FALSE;
  }
}