I'm working on a recipe module that is based on the existing recipe module. However, the fundamental table structure is significantly different.
What would be the most effective way of providing this conversion? I'm new to working with Drupal, and I'm a little suprised that "update.php" doesn't handle module updates too.
The conversions requires some logic from PHP, so it can't just be an SQL file for the user to run.
In my module I need to find the top level parent of a book page. That is, the parent of the parent of the parent (etc) with parent nid == 0. Right now I'm using the book_location() function, but I would be interested in seeing some SQL magic to do it one query.
I'm having issues trying to upload files to drupal. I put a file_check_upload in there to see if it was making it that far in the file_save_upload and it is. I can't seem to figure where I'm going wrong. I have a deadline in couple hours and I'm trying to get this solved before then.
Heres my upload code. Like I said before, the file uploads to the server properly, but it doesn't make it through file_save_upload and I don't know why. This is my first project with drupal, so take my ignorance with a grain of salt ;)
I've been searching for sometime now but to no avail. I am looking to use the Title module feature with Flexinode forms. I am having teachers at my school fill out the forms to create their staff page. I would like to have them choose what department they are in from a drop down menu. As it stands now, I have set up a taxonomy of departments they can choose from. The only problem with this is that the link that is created by the taxonomy term sends the user to a page I don't want them to go to.
I'm having trouble building a table. Here's the story. I created a catergory, and a term called directory. I have attached a page to it. And in this page, I use the following code that works to a point, but does not stick this data in a table :
$output .= '
';
$result = db_query("SELECT uid FROM {users} WHERE status = 1");
while ($processingUser = db_fetch_object($result)){
if ( $processingUser > 1 ) {
profile_load_profile($processingUser);
$resultA = db_query('SELECT * FROM {profile_fields} ORDER BY name, category');
$first = '';
$last = '';
$address = '';
$phone = '';
$listuse = '';
while ($field = db_fetch_object($resultA)) {
if ($value = profile_view_field($processingUser, $field)) {
if ( $field->title == "Address" ) {
$address = $value;
$address .= " Maineville Ohio 45039";
}
if ( $field->title == "First Name(s)" ) {
$first = $value;
}
if ( $field->title == "Last Name(s)" ) {
$last = $value;
}
if ( $field->title == "Phone Number" ) {
$phone = $value;
}
if ( $field->title == "Directory Listing" ) {
$listuser = $value;
}
}
}
if ( $listuser == "Directory Listing" or $listuser != '') {