function theme_jeditable_formatter_jeditable_nodereference in jEditable inline content editing 7
Same name and namespace in other branches
- 6.2 jeditable.module \theme_jeditable_formatter_jeditable_nodereference()
- 6 jeditable.module \theme_jeditable_formatter_jeditable_nodereference()
Theme a CCK text field as a jeditable nodereference.
File
- ./
jeditable.module, line 331 - jeditable.module TODO: Provides integration between Drupal and the jEditable jquery plugin @todo: Datepicker support @todo: Ajax upload support @todo: Radioboxes/checkboxes support @todo: add required handler for date @todo: add compatibility for…
Code
function theme_jeditable_formatter_jeditable_nodereference($element) {
$id = $element['#node']->nid;
$field = $element['#field_name'];
$node = node_load($element[0]['#item']['nid']);
return '<span id="field-' . $id . '-' . $field . '" class="jeditable-select">' . $node->title . '</span>';
}