You are here

function _multiple_registration_remove_page_alias in Multiple Registration 7

Removes url aliases.

Parameters

int $rid: User role id.

2 calls to _multiple_registration_remove_page_alias()
multiple_registration_create_registration_form_submit in ./multiple_registration.module
Submit function for multiple_registration_create_registration_form.
_multiple_registration_remove_page in ./multiple_registration.module
Removes registering page for role.

File

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

Code

function _multiple_registration_remove_page_alias($rid) {
  $source = variable_get('multiple_registration_url_' . $rid, '');
  if ($source) {
    db_delete('url_alias')
      ->condition('source', $source)
      ->execute();
  }
  else {
    return FALSE;
  }
}