function imce_profile_operations in IMCE 6
Same name and namespace in other branches
- 6.2 inc/imce.admin.inc \imce_profile_operations()
- 7 inc/imce.admin.inc \imce_profile_operations()
Add-Edit-Delete profiles.
1 string reference to 'imce_profile_operations'
- imce_menu in ./
imce.module - Implementation of hook_menu().
File
- inc/
admin.inc, line 155
Code
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();
}