You are here

function imce_profile_import_html in IMCE 6

Same name and namespace in other branches
  1. 6.2 inc/imce.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/admin.inc
Profile form.

File

inc/admin.inc, line 515

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;
}