You are here

function imce_mkdir_content in IMCE Mkdir 7

Same name and namespace in other branches
  1. 6 imce_mkdir.module \imce_mkdir_content()

Custom content. Returns directory creation form

File

./imce_mkdir.module, line 25

Code

function imce_mkdir_content(&$imce) {
  if (!$imce['error'] && (imce_perm_exists($imce, 'mkdir') || imce_perm_exists($imce, 'rmdir'))) {
    $path = drupal_get_path('module', 'imce_mkdir');
    drupal_add_js($path . '/imce_mkdir.js');
    drupal_add_css($path . '/imce_mkdir.css');
    $form = drupal_get_form('imce_mkdir_form', array(
      'imce' => &$imce,
    ));
    return drupal_render($form);
  }
}