I'm using image, img_assist and tinymce on drupal 4.7

When uploading images my users don't need the Body/text block, and new people get confused so I would like to disable that. Is that possible?

I've looked all around and don't see it as an option that can be enabled/disabled. So if this isn't possible from the Administration interface does anyone know where to find the input/upload form and I'll simply remove the textarea for the body?

Thanks.

Comments

anner’s picture

Perhaps instead of editing the default content types, you might want to try using CCK to create a content type that matches your needs

jeffleeismyhero’s picture

To do this with Image module I modified the image.module file by commenting out:

$form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#rows' => 20, '#default_value' => $node->body);
AND
$node->body = theme('image_body', $node, $request);

/** Stop the body section from appearing when uploading a photo  **/
//$form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#rows' => 20, '#default_value' => $node->body);
  $form['format'] = filter_form($node->format);

  return $form;
}

/**
 * Implementation of hook_view
 */
function image_view(&$node, $teaser = 0, $page = 0) {
  $request = ($_GET['size']) ? $_GET['size'] : 'preview';
  $request = check_plain($request);
  $node = node_prepare($node, $teaser);
  $node->teaser = theme('image_teaser', $node);
  //$node->body = theme('image_body', $node, $request);
}
_bullseye_’s picture

I, too, would like to remove the body box fom the form, but using the fix mentioned causes the image to not show in the node.

Any way to remove the box, but still display the image on it's own node? All I have left is the title.