function imce_profile_operations in IMCE 6.2
Same name and namespace in other branches
- 6 inc/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/
imce.admin.inc, line 179 - 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();
}