summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--feeds.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/feeds.module b/feeds.module
index 46d666b..96e308f 100644
--- a/feeds.module
+++ b/feeds.module
@@ -350,7 +350,7 @@ function feeds_nodeapi(&$node, $op, $form) {
}
catch (Exception $e) {
drupal_set_message($e->getMessage(), 'error');
- form_set_error('title', t('Could not retrieve title from feed.'), 'error');
+ form_set_error('title', t('Could not retrieve title from feed.'));
}
}
break;
@@ -453,7 +453,7 @@ function feeds_form_alter(&$form, $form_state, $form_id) {
if (isset($form['#node']->type) && $form['#node']->type . '_node_form' == $form_id) {
if ($importer_id = feeds_get_importer_id($form['#node']->type)) {
// Set title to not required, try to retrieve it from feed.
- if (isset($form['#title'])) {
+ if (isset($form['title'])) {
$form['title']['#required'] = FALSE;
}