You are here

function imce_profile_import_html in IMCE 6.2

Same name and namespace in other branches
  1. 6 inc/admin.inc \imce_profile_import_html()
  2. 7 inc/imce.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 558
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' => 'import=' . $id,
      ));
    }
  }
  if (!empty($links)) {
    $output = '<p><strong>' . t('Import settings from other profiles') . '</strong>: ';
    $output .= implode(', ', $links) . '</p>';
  }
  return $output;
}