function nodereference_elements in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6 modules/nodereference/nodereference.module \nodereference_elements()
- 6.2 modules/nodereference/nodereference.module \nodereference_elements()
Implementation of FAPI hook_elements().
Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.
Drupal will automatically theme the element using a theme with the same name as the hook_elements key.
Autocomplete_path is not used by text_widget but other widgets can use it (see nodereference and userreference).
File
- modules/
nodereference/ nodereference.module, line 446 - Defines a field type for referencing one node from another.
Code
function nodereference_elements() {
return array(
'nodereference_select' => array(
'#input' => TRUE,
'#columns' => array(
'uid',
),
'#delta' => 0,
'#process' => array(
'nodereference_select_process',
),
),
'nodereference_buttons' => array(
'#input' => TRUE,
'#columns' => array(
'uid',
),
'#delta' => 0,
'#process' => array(
'nodereference_buttons_process',
),
),
'nodereference_autocomplete' => array(
'#input' => TRUE,
'#columns' => array(
'name',
),
'#delta' => 0,
'#process' => array(
'nodereference_autocomplete_process',
),
'#autocomplete_path' => FALSE,
),
);
}