Module automatically synchronizes Drupal users to Magento. Upon any action with Drupal user (creation, edition or removal), similar event is performed at Magento.
Also module allows to set up correspondences between user roles at Drupal and user groups at Magento. Each Drupal role is set up in correspondence with Magento user group at admin page.
Module's installation process
During installation, module creates magento_groups table in Drupal database used to store the correspondences between Drupal roles and Magento user groups.
Description: Function calls magento_users_roles_propagation_form form.
This form is used to set up to set up correspondences between user roles at Drupal and user groups at Magento. Drupal makes a query about getting the list of user groups to Magento. It's possible to select one user group from the list for each user role. Upon form (magento_users_roles_propagation_form_submit) submission, all the correspondences are saved to database table (new entries are created or existing are updated).
Arguments: $id is the ID of user role
Return value: $group_id is the ID of user group
Description: Using received user role ID, function figures corresponded user group at Magento.