diff --git a/message_notify.rules.inc b/message_notify.rules.inc index 100e418..049e996 100644 --- a/message_notify.rules.inc +++ b/message_notify.rules.inc @@ -42,7 +42,7 @@ function message_notify_rules_action_info() { 'mail' => array( 'type' => 'text', 'label' => t('The recipient of the email'), - 'description' => t('The recipient of the email. If left empty, the mail will be sent to the author of the message.'), + 'description' => t('The recipient of the email. If left empty, the mail will be sent to the author of the message. Note that its value will be considered only if you have Email selected as notify plugin.'), 'default value' => FALSE, 'allow null' => TRUE, 'optional' => TRUE, @@ -81,33 +81,10 @@ function message_notify_rules_process(Message $message, $save_on_fail, $save_on_ } /** - * Options list; Return the text field attached to the selected message - */ -function message_notify_field_text_list() { - $options = array(FALSE => '- ' . t('None') . ' -'); - - foreach (field_info_instances('message') as $message_type => $instances) { - foreach ($instances as $field_name => $instance) { - if (!empty($options[$field_name])) { - // Field is already in the options array. - continue; - } - $field = field_info_field($field_name); - if (!in_array($field['type'], array('text', 'text_long', 'text_with_summary'))) { - // Field is not a text field. - continue; - } - - $options[$field_name] = $instance['label']; - } - } - - return $options; -} - - -/** - * Options list; Return list of all available notification plugins. + * Return list of all available message notification plugins. + * + * @return array + * Message notify plugins. */ function message_notify_plugin_options() { $plugins = message_notify_get_notifiers();