Where's the code for the Create Content -> Submit personal blog entry page? Specifically the "body/content" textbox? I can't find it anywhere!

Thanks,
Billy

Comments

Sougent’s picture

Did you look in blog.module in the modules directory? That's where I'd expect it to be.

jeepfreak’s picture

Yeah, that's what I thought, but if it's there, I'm blind!

Sougent’s picture

Went and popped up an example, are you talking about the page where you type the blog entry? If so, I think that's a generic thing that is used for all sorts of different content types.

What are trying to do?

jeepfreak’s picture

That'd be ok. That's the only kind of content I have on my site. I need to add a short line of instruction just above the text box.

Sougent’s picture

Have you looked at this? I realize it's not exactly where you want but it's intended for what you want to do.

(change yoursite to the name of your own site where drupal is installed)

http://www.yoursite.com/admin/node/configure/types/blog

jeepfreak’s picture

That is helpful, thanks for reminding me.
Billy

jeepfreak’s picture

Bummer, doesn't come out in the right spot.

Eglish’s picture

I believe this:

$output .= form_textarea(t('Body'), 'body', $node->body, 60, 20, '', NULL, TRUE);

is what you're looking for. This is on line 213 of blog.module.

Links for reference:
blog.module
form_textarea

Sougent’s picture

That could be it, but is that the data entry area or the display for the finished product?

I think what he wants might be in the node.module.....

Eglish’s picture

Well I was thinking that too, but when I checked node.module it seems that it only asks for 'Title' field, then it adds the blog module's code.

on line 1328 of node.module:

  // Add the default fields.
  $output .= '<div class="standard">';
  $output .= form_textfield(t('Title'), 'title', $edit->title, 60, 128, NULL, NULL, TRUE);

  // Add the node-type-specific fields.
  $output .= $form; 
jeepfreak’s picture

Awesome! Thanks man!
Billy