imce_profile_operations

Definition

imce_profile_operations($op = 'add', $pid = 0)
imce/inc/admin.inc, line 134

Description

Add-Edit-Delete profiles.

Code

<?php
function imce_profile_operations($op = 'add', $pid = 0) {
  //delete
  if ($op == 'delete') {
    drupal_set_title('Delete profile');
    return drupal_get_form('imce_profile_delete_form', $pid);
  }
  //add-edit
  if ($pid != 1 || $GLOBALS['user']->uid == 1) {
    return drupal_get_form('imce_profile_form', $pid);
  }
  drupal_access_denied();
}
?>