You are here

function farm_access_permissions_form_submit in farmOS 7

Submit function for the core permissions form.

1 string reference to 'farm_access_permissions_form_submit'
farm_access_form_alter in modules/farm/farm_access/farm_access.module
Implements hook_form_alter().

File

modules/farm/farm_access/farm_access.module, line 655
Farm Access module.

Code

function farm_access_permissions_form_submit($form, &$form_state) {

  // Create new roles.
  farm_access_roles_create();

  // Sync permissions.
  farm_access_sync_perms();

  // Tell the user that we are enforcing the permissions, so there's no
  // confusion.
  drupal_set_message(t('Farm access permissions were automatically assigned.'));
}