You are here

function imce_profile_operations in IMCE 7

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

Add-Edit-Delete profiles.

1 string reference to 'imce_profile_operations'
imce_menu in ./imce.module
Implements hook_menu().

File

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

Code

function imce_profile_operations($op = 'add', $pid = 0) {

  // Delete.
  if ($op == 'delete') {
    drupal_set_title(t('Delete configuration profile'));
    return drupal_get_form('imce_profile_delete_form', $pid);
  }

  // Add-edit.
  if ($op === 'add' || $op === 'edit') {
    return drupal_get_form('imce_profile_form', $pid);
  }
  drupal_access_denied();
}