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

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,

nodeapi_example in HEAD isn't 4.7 compatible is it?

Hi

I am trying to implement exactly this idea of extending an existing node:

http://drupaldocs.org/api/head/function/nodeapi_example_nodeapi

but on 4.7.0-beta3. For some reason (my lack of understand ;) I cannot get the values back to store in my database.
I post a question about my code in http://drupal.org/node/44352 before discovering the example above.

Calendar Systems

I tried searching around a bit for this,

Has anyone developed a calendar system for Drupal similar to ExtCalendar 2? Or, has anyone installed ExtCalendar 2 and had it work well with Drupal?

Pages

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