I have been working to learn Drupal 7 (new to Drupal) and writing a custom module. I am trying to create a form on a settings page that allows the user to add/edit/delete custom tokens. I have learned how to make ajax forms but am now struggling with how to put the form in a table.
Is the best way to use prefix/suffix in the code that creates the form to add table html to the elements?
-or-
Is the best way to use some kind of theming hook to take the form and add the table html?
-or-
some other way all together?
I just got a fatal error:
Maximum execution time of 30 seconds exceeded in C:/wamp/www/harlequingraphics/includes/file.inc on line 1975
I opened file.inc and looked at line 1975 and it doesn't say anything about timing out.
But here's the thing, the number 30 doesn't show up anywhere in the file. Whatvam I supposed to do with an error for a variable that doesn't exist?
I want to write a workbook (book module is perfect) with 1-3 questions on each page, that people can go back and see or edit their answers, and I can create views of interesting answers ... think of a self-help workbook.
Here's a bad way I could do it:
create a cck type and a block/panel for each and every question, find a way to embed each form in a block, and move them by hand to the correct book-page on the blocks/panels interfaces. If I have 50 questions going on 30 pages, that will move around as the book gets written, this would work but be a nightmare... if I add a new question on page 10 and want to bump pages 10-20 each to the next page, I have to do each page one at a time... probably making changes like this over and over.
The ideal version would, I think:
Let me slide questions around from page to page with a gui, much like you can reorganize a book. And not have 30 or 50 page-specific blocks.
Have one large cck form instead of creating 30 (~one for each page of the workbook), and be able to pick the questions per page.
Expose other peoples answers for 5-star and complex viewing.
Questions are ajaxy with primary questions as checkboxes that reveal secondary questions. (this is probably a separate problem from the overall site design.)
I am hoping some one can help me with this snippet of code for sending emails with an attachment. I have added the MimeMail module to handle the email attachment encoding, but it never attaches the file.
I have tried using the raw $file->uri (public://) and the drupal_realpath($file->uri) but none of them seem to work.
I'm not even sure if its invoking the MimeMail module although my `variable_get('mail_system')` says its set to `MimeMailSystem`
Can anyone check the code below and advise of any errors/ommissions?
I created a custom content type that contains a custom text field. When I added the field I named it yturl (field_yturl)
I am trying to display this field on the page without any divs around it, just the value.