]> gitweb.fluxo.info Git - drupal/reminder.git/commitdiff
Fixing hook implementation
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Aug 2012 21:50:28 +0000 (18:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Aug 2012 21:50:28 +0000 (18:50 -0300)
reminder.module

index fa7f80bf4d5df36ee10b17957f0ec3397f3ae033..cea6cd4e1134fdfec87853294bcc4d9732e435d2 100644 (file)
@@ -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
     );