function imce_admin

cis7 imce.admin.inc imce_admin()
cle7 imce.admin.inc imce_admin()
elmsmedia7 imce.admin.inc imce_admin()
icor7 imce.admin.inc imce_admin()
meedjum_blog7 imce.admin.inc imce_admin()
mooc7 imce.admin.inc imce_admin()

Admin main page.

3 string references to 'imce_admin'
imce_admin_form in sites/all/modules/ulmus/imce/inc/imce.admin.inc
Admin form.
imce_menu in sites/all/modules/ulmus/imce/imce.module
Implements hook_menu().
imce_theme in sites/all/modules/ulmus/imce/imce.module
Implements hook_theme().

File

sites/all/modules/ulmus/imce/inc/imce.admin.inc, line 11
Serves administration pages of IMCE.

Code

function imce_admin() {

  $profiles = variable_get('imce_profiles', array());

  $header = array(t('Profile name'), array(
    'data' => t('Operations'),
    'colspan' => 2,
  ));
  $rows = array();

  foreach ($profiles as $pid => $profile) {
    $rows[] = array(
      check_plain($profile['name']),
      l(t('Edit'), 'admin/config/media/imce/profile/edit/' . $pid),
      $pid == 1 ? '' : l(t('Delete'), 'admin/config/media/imce/profile/delete/' . $pid),
    );
  }

  $rows[] = array('', array(
    'data' => l(t('Add new profile'), 'admin/config/media/imce/profile'),
    'colspan' => 2,
  ));

  $output['title'] = array(
    '#markup' => '<h2 class="title">' . t('Configuration profiles') . '</h2>',
  );
  $output['table'] = array(
    '#theme' => 'table',
    '#header' => $header,
    '#rows' => $rows,
    '#attributes' => array('id' => 'imce-profiles-list'),
  );
  $output['form'] = drupal_get_form('imce_admin_form');
  return $output;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.