You are here

function theme_editor_note_message in Editor Notes 7

Returns formatted status message for Ajax-triggered actions.

4 theme calls to theme_editor_note_message()
editor_note_add_note in ./editor_note.module
Ajax callback for 'Add note' button in 'editor_note_field_widget_form'.
editor_note_confirm_edit_form_update in ./editor_note.pages.inc
Submit callback for 'Update' button in 'editor_note_confirm_edit_form'.
editor_note_confirm_form_cancel in ./editor_note.pages.inc
Submit callback for 'Cancel' button in 'editor_note_confirm_remove_form'.
editor_note_confirm_remove_form_remove in ./editor_note.pages.inc
Submit callback for 'Remove' button in 'editor_note_confirm_remove_form'.

File

./editor_note.module, line 1548
Main functionality for Editor Notes module.

Code

function theme_editor_note_message($variables) {
  $field_name = $variables['field_name'];
  $message_text = $variables['message_text'];
  $message_type = $variables['message_type'];
  if (!empty($message_text) && !empty($message_type)) {
    return '<div id="status_message_' . $field_name . '">
    <div class="messages ' . $message_type . '">' . $message_text . '</div></div>';
  }
  else {
    return '<div id="status_message_' . $field_name . '"></div>';
  }
}