You are here

function theme_jeditable_formatter_jeditable_nodereference in jEditable inline content editing 6

Same name and namespace in other branches
  1. 6.2 jeditable.module \theme_jeditable_formatter_jeditable_nodereference()
  2. 7 jeditable.module \theme_jeditable_formatter_jeditable_nodereference()

Theme a CCK text field as a jeditable textarea.

File

./jeditable.module, line 153
jeditable.module

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="cck-' . $id . '-' . $field . '" class="jeditable-select">' . $node->title . '</span>';
}