This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How to add some content between head tags from module ?

Hello,
my question is:
How to add some content between head tags from module ?
When I use

<?php theme('page',$something); ?>

I have content of the $something under the page's title.
Is there any

<?php theme('head',$something); ?>

function ?

i18n and phptemplate

Clean URLS, i18n-module and phptemplate

I was having some troubles configuring my frontpage as I liked. After messing around with the $page==0 and $is_front Variables in phptemplate and testing several php-Hacks directly in the page.tpl.php file I found a solution to get phptemplate's $is_front Variable running correctly:

phptemplate.engine, lines 79 and 80 read as follows:

Module for uncommentable nodes

Hi everybody!

Is there a way to create a module which define a new node type
which can not be commented?
(comment disabled by default)

Thanks.

Fabio

Convert comments to nodes

There has been sporadic discussion about the possibility of converting comments (and their dependent threads) to new nodes, eg:

http://drupal.org/node/3489
http://drupal.org/node/11877
http://drupal.org/node/38249

Is anything happening? It would be very helpful to have this functionality - in fact for me it's becoming a critical need. Does some sort of incentive need to be offered?

TinyMCE want to disable for trackback textarea

How do I disable TinyMCE for the trackback textarea? I tried putting the textarea name in the case statements but evidently, I am not coming up with the right name.

Field set and accessing return variable (newbie que)

Hi

I have a form in my module which includes the following segment:

 $form['evalform']= array(
   '#type' => 'fieldset',
   '#title' => t('Evaluation fields:'),
   '#tree' => TRUE,
   '#collapsible' => TRUE,
  );
  $form['evalform']['principles_rating'] = array(
    '#type' => 'radios',
    '#title' => t('Principles rating'),
    '#default_value' =>   $node->principles_rating,
    '#options' => $ratingbuttons,
    '#description' => t('Principles rating description'),
  );

when it comes time to insert I user var_dump($node) to check the values and things are fine except that
there is level issue which I just don't understand yet. What I mean is that 'principles_rating' cannot be accessed via $node->principles_rating because its inside an array called 'evalform'. The var_dump gives:

object(stdClass)(23) { ["nid"]=> int(20) ["vid"]=> int(20) ["uid"]=> string(1) "1" ["created"]=> int(1137046448) ["changed"]=> int(1137046448) ["type"]=> string(21) "fhsstadmin-evaluation" ["evalcontentdiv"]=> array(1) { ["pagecontent"]=> string(0) "" } ["evalform"]=> array(5) { ["principles_rating"]=> string(1) "2" ... ["validated"]=> bool(true) ["is_new"]=> bool(true) }

How do I actually access the value in my insert fucntion, i.e. what do I need to change in:


db_query("INSERT INTO {fhsstadmin}_mediation (nid,
uid,

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions