You are here

function saml_sp__load_all_idps in SAML Service Provider 7.2

Same name and namespace in other branches
  1. 8.3 saml_sp.module \saml_sp__load_all_idps()
  2. 8.2 saml_sp.module \saml_sp__load_all_idps()
  3. 7.8 saml_sp.module \saml_sp__load_all_idps()
  4. 7 saml_sp.module \saml_sp__load_all_idps()
  5. 7.3 saml_sp.module \saml_sp__load_all_idps()
  6. 4.x saml_sp.module \saml_sp__load_all_idps()
  7. 3.x saml_sp.module \saml_sp__load_all_idps()

Load all the registered IDPs.

Return value

Array An array of IDP objects, keyed by the machine name.

4 calls to saml_sp__load_all_idps()
saml_sp_Auth::login in includes/saml_sp.Auth.inc
Initiates the SSO process.
saml_sp_drupal_login__admin_config_form in modules/saml_sp_drupal_login/saml_sp_drupal_login.admin.inc
Configure which IDP to use when authenticating with Drupal.
saml_sp_idp_load in ./saml_sp.module
Load a single IDP. Also a menu argument loader.
saml_sp__admin_overview in ./saml_sp.admin.inc
Overview page. Display a list of IDPs in a table.

File

./saml_sp.module, line 287
SAML Service Provider

Code

function saml_sp__load_all_idps() {

  // Use CTools export API to fetch all presets.
  ctools_include('export');
  $result = ctools_export_crud_load_all('saml_sp_idps');
  if (variable_get('saml_sp__debug', FALSE)) {
    watchdog('saml_sp', __FUNCTION__ . ' - $result => <pre>@result</pre>', array(
      '@result' => print_r($result, TRUE),
    ), WATCHDOG_DEBUG);
  }
  return $result;
}