You are here

function simple_ldap_user_drush_command in Simple LDAP 7.2

Implementation of hook_drush_command()

File

simple_ldap_user/simple_ldap_user.drush.inc, line 14

Code

function simple_ldap_user_drush_command() {
  $items = array();
  $items['ldap-export-all'] = array(
    'description' => 'Export all users in Drupal that are not in LDAP',
    'callback' => 'simple_ldap_user_drush_export_all',
    'options' => array(
      'found-count' => 'Stop the run after aa certain number of users are found in LDAP.  (Useful to prevent memory exhustion.)',
      'missing-count' => 'Stop the run after aa certain number of users are not found in LDAP.  (Useful to prevent memory exhustion.)',
    ),
  );
  $items['ldap-check-all'] = array(
    'description' => 'Check all users in Drupal are in LDAP',
    'callback' => 'simple_ldap_user_drush_check_all',
    'options' => array(
      'found-count' => 'Stop the run after aa certain number of users are found in LDAP.  (Useful to prevent memory exhustion.)',
      'missing-count' => 'Stop the run after aa certain number of users are not found in LDAP.  (Useful to prevent memory exhustion.)',
    ),
  );
  $items['ldap-mail-collison-check'] = array(
    'description' => 'Check for two users who have the same email address',
    'callback' => '_simple_ldap_user_check_existing_by_mail',
  );
  $items['ldap-update-all-puids'] = array(
    'description' => 'For all users in Drupal, update the authmap with the PUID from LDAP.',
    'callback' => 'simple_ldap_user_drush_update_all_puids',
  );
  return $items;
}