You are here

function imce_profile_import_html in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.admin.inc \imce_profile_import_html()
  2. 6 inc/admin.inc \imce_profile_import_html()

Profile import links.

1 call to imce_profile_import_html()
imce_profile_form in inc/imce.admin.inc
Profile form.

File

inc/imce.admin.inc, line 647
Serves administration pages of IMCE.

Code

function imce_profile_import_html($pid = 0) {
  $output = '';
  $links = array();
  foreach (variable_get('imce_profiles', array()) as $id => $profile) {
    if ($pid != $id) {
      $links[] = l($profile['name'], $_GET['q'], array(
        'query' => array(
          'import' => $id,
        ),
      ));
    }
  }
  if (!empty($links)) {
    $outputText = t('Import settings from other profiles');
    $output = '<p><strong>' . $outputText . '</strong>: ';
    $output .= implode(', ', $links) . '</p>';
  }
  return $output;
}