From: Silvio Rhatto Date: Fri, 10 Aug 2012 21:50:28 +0000 (-0300) Subject: Fixing hook implementation X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=339f9673536a3282109a3e1cf8d86cfe1ee1562c;p=drupal%2Freminder.git Fixing hook implementation --- diff --git a/reminder.module b/reminder.module index fa7f80b..cea6cd4 100644 --- a/reminder.module +++ b/reminder.module @@ -92,8 +92,6 @@ function reminder_node_info() { 'description' => t("Create a reminder for a business lunch, a meeting or a movie night."), 'has_title' => TRUE, 'title_label' => t('Your reminder'), - 'has_body' => TRUE, - 'body_label' => t('Add some description'), ) ); } @@ -152,7 +150,7 @@ function reminder_form(&$node) { if ($type->has_body) { $form['body'] = array( '#type' => 'textarea', - '#title' => check_plain($type->body_label), + '#title' => t('Add some description'), '#default_value' => isset($node->body) ? $node->body : '', '#rows' => 5 );