Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hi, I'm creating a module that needs to add some HTML code to the head of pages and before the closing body, so far I've done it using drupal_set_html_head() and hook_footer() in my hook_menu().
I need to do it from my module because I don't want to require the site administrator to create a custom theme, even if it just needs a few lines of HTML in page.tpl.php.
Is there a module where every registered user can add articles and when they submit it, there pending for administrator aproval? And also the option to choose the category to submit the article in? I've searched the modules database, but there is sooooo much. ;) Maybe someone could point me in the right direction
I'm wondering what the most convenient way (if there is a good way) for retrieving the results of a view AS simply an array of nodes. The node array doesn't need to have all the info in it as that is available using node_load. It seems that all of the 'out of the box' functionality only provides views as already themed, but not in a more raw format. Looking at views_build_view() it appears that in order to do this I may have to go about this by starting with constructing a query. Essentially starting from scratch.
I need to be able to select a sid that value matches a certain date. In the above example the sid value would be '2' if I wanted to select with date '12/8/2007'. I was wondering if there was a mysql (4.1.21-standard) SQL statement I could use select all the distinct sid values that match a certain date. The following is an example of a 'webform_submitted_data' table: