You are here

function autoassignrole_register in Auto Assign Role 7

Same name and namespace in other branches
  1. 7.2 autoassignrole.paths.inc \autoassignrole_register()

Loads the user registration form.

$rid is not actually used in the function but by passing it we can find out which roles are meant to be added to the new user by using autoassignrole_get_active_path_rid();

Parameters

int $rid: $rid is the 'rid_page_id' of the page we are currently generating.

Return value

string User registration form renderer.

See also

autoassignrole.module

autoassignrole_get_active_path_rid()

2 string references to 'autoassignrole_register'
autoassignrole_get_active_path_rid in ./autoassignrole.module
Finds any role ids attached to current page, if any.
autoassignrole_menu in ./autoassignrole.module
Implements hook_menu().

File

./autoassignrole.paths.inc, line 36
Paths used for autoassignrole created user pages.

Code

function autoassignrole_register($rid) {
  $output = drupal_get_form('user_register_form');
  return $output;
}