You are here

function saml_sp__export_idp in SAML Service Provider 7

Same name and namespace in other branches
  1. 7.8 saml_sp.admin.inc \saml_sp__export_idp()
  2. 7.2 saml_sp.admin.inc \saml_sp__export_idp()
  3. 7.3 saml_sp.admin.inc \saml_sp__export_idp()

Export handler.

1 string reference to 'saml_sp__export_idp'
saml_sp_menu in ./saml_sp.module
Implements hook_menu().

File

./saml_sp.admin.inc, line 200
Admin pages for the SAML Service Provider module.

Code

function saml_sp__export_idp($saml_idp) {
  $output = array();
  $code = ctools_export_crud_export('saml_sp_idps', $saml_idp);
  $code .= "\n";
  $code .= '$saml_sp_idps[$saml_idp->machine_name] = $saml_idp;';
  $code .= "\n";
  $file = 'modulename.saml_sp_idps.inc';
  $export_form = drupal_get_form('ctools_export_form', $code, t('Add this to hook_saml_sp_default_idps().'));
  $output['saml_sp_idps__inc'] = array(
    '#markup' => drupal_render($export_form),
  );
  return $output;
}