Hey, so I'm semi-new to Drupal (mid-way through my first site), and I'm trying to implement the hook_menu function (sounds simple enough) but I can't get the page callback to work. I'll post the code below but I'm trying to get a MENU_NORMAL_ITEM link to load a email form for site administrators. I've been working on this one facet for like 2 hours now and it's frustrating me to no end. Any help would be gladly appreciated.
I am a bit new to PHP, so this could be a newb question. I am rebuilding my website in Drupal, and one thing I've been dealing with constantly is not being able to use custom values I've made. For example, if in an included PHP file in my website stores values like:
$sport = 'tennis'
and when I make a new content page, and I want to echo "$sport";, it doesn't display anything. Yes, I've enabled PHP and changed the content type to PHP.
I am very new to Drupal, so I'm sure this is a simple question, or I am just going about this the wrong way. I have created a forms both with the webform module and created my own module for a form using FAPI. The form has a couple of values that I would like to use in a node created from a custom content type to perform a series of calculations. I am having a lot of trouble figuring out how to reference the submitted form fields in my content node. Any help would be great.
I've been working with D7 since December. I've implemented Organic Groups to support a variety of groups that will fall under several categories. I've created a taxonomy vocabulary to manage the og categories. Nothing too complicated.
My challenge is that I am not trying to setup a view that will list all of the articles for a given category which will span several groups.