You are here

function theme_jeditable_formatter_jeditable_textfield in jEditable inline content editing 6

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

Theme a CCK text field as a jeditable textfield.

File

./jeditable.module, line 131
jeditable.module

Code

function theme_jeditable_formatter_jeditable_textfield($element) {
  $id = $element['#node']->nid;
  $field = $element['#field_name'];
  return '<span id="cck-' . $id . '-' . $field . '" class="jeditable-textfield">' . $element[0]['#item']['value'] . '</span>';
}