function plupload_element_info in Plupload integration 7
Same name and namespace in other branches
- 7.2 plupload.module \plupload_element_info()
Implements hook_element_info().
File
- ./
plupload.module, line 91 - Implementation of plupload.module.
Code
function plupload_element_info() {
$types = array();
$module_path = drupal_get_path('module', 'plupload');
$types['plupload'] = array(
'#input' => TRUE,
'#attributes' => array(
'class' => array(
'plupload-element',
),
),
// @todo
// '#element_validate' => array('file_managed_file_validate'),
'#theme_wrappers' => array(
'form_element',
),
'#theme' => 'container',
'#value_callback' => 'plupload_element_value',
'#attached' => array(
'library' => array(
array(
'plupload',
'plupload',
),
),
'js' => array(
$module_path . '/plupload.js',
),
'css' => array(
$module_path . '/plupload.css',
),
),
'#process' => array(
'plupload_element_process',
),
'#element_validate' => array(
'plupload_element_validate',
),
'#pre_render' => array(
'plupload_element_pre_render',
),
);
return $types;
}