You are here

function theme_jeditable_formatter_jeditable_datetime in jEditable inline content editing 6.2

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

Theme a CCK text field as a jeditable textfield.

File

./jeditable.module, line 138

Code

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