Since in my case the apply for role only is about one specific role, I would like to skip the form submission.
Would it be possible to auto-submit the role request (not the approval) when accessing some page, like the appl_for_role user page?
Thanks

Comments

jnicola’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This is a custom code request.

You can do this by sending them to:
admin/people/apply_for_role/approve/%user/%

or

in hook_menu with the same code as this only customized to your own path and desires:

$items['admin/people/apply_for_role/approve/%user/%'] = array(
    'title' => 'Approve role application',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('apply_for_role_approve_form', 4, 5),
    'access arguments' => array('approve role applications'),
    'type' => MENU_CALLBACK,
    'file' => 'apply_for_role.admin.inc',
  );

Closing though as won't fix since this is way too custom of a situation for this module.