You are here

function message_get_text_fields in Message 7

Find all message text fields.

Return value

Array of all field names that are marked as message-text.

2 calls to message_get_text_fields()
message_admin_text_copy_batch in ./message.module
Batch callback. Copy the message text fields from one language to others.
message_field_attach_form in ./message.module
Implements hook_field_attach_form().

File

./message.module, line 1045
API functions to manipulate messages.

Code

function message_get_text_fields() {
  $message_fields = array();
  foreach (field_info_fields() as $field_name => $field) {
    if (!empty($field['settings']['message_text'])) {
      $message_fields[] = $field_name;
    }
  }
  return $message_fields;
}