function farm_access_form_alter in farmOS 7
Implements hook_form_alter().
File
- modules/
farm/ farm_access/ farm_access.module, line 641 - Farm Access module.
Code
function farm_access_form_alter(&$form, &$form_state, $form_id) {
// Add our submit function to the core permissions form if farm roles exist.
if ($form_id == 'user_admin_permissions') {
$roles = farm_access_roles();
if (!empty($roles)) {
$form['#submit'][] = 'farm_access_permissions_form_submit';
}
}
}