You are here

function imce_elements in IMCE 5

Same name and namespace in other branches
  1. 6.2 imce.module \imce_elements()
  2. 6 imce.module \imce_elements()

Implementation of hook_elements().

File

./imce.module, line 771

Code

function imce_elements() {
  $type = array();
  if (($ids = str_replace(' ', '', variable_get('imce_settings_textarea', ''))) && user_access('access imce')) {
    $type['textarea'] = array(
      '#process' => array(
        'imce_process_textarea' => array(
          explode(',', $ids),
        ),
      ),
    );
  }
  return $type;
}