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

How to understand Drupal stucture

Hai,

I am a PHP programmer.
I am new to drupal.
Can anyone tell me how to customize and understand the coding structure in drupal

Thank u

how can I store what jQuery returns in a PHP variable?

I am fairly new to jQuery.

basically I just want to do $('body').width(), which returns the width of the body element. I want to store that in a php variable.
Also if i wanted this in my page.tpl.php how would I go about it.
I know I use something like:

<?php
   drupal_add_js(
    '$(document).ready(function(){
         $("body").width();
     });',
    'inline'
   );
?>

thanks.

Default content type settings

Hey,

I am creating a node type module and was wondering if there is any way to set what the default settings(comments, promotion, sticky) for this module should be.

Of course the admin could still go to Administer > Content Management > Content-types and still make any changes, but it would be nice to install a module with more appropriate settings.

Thanks for any help.

drupal_execute and form redirection

Hi,

I have a module that defines 2 new node types. I am able to insert, delete, update, view etc these nodes just fine. Part of this module is a drupal menu that creates many of these nodes programmatically. It gets information from the filesystem and then creates nodes ( of my new type) with drupal_execute and outputs the results to the webpage.

Creating a Module

How do you create a module? I'm relatively new to Drupal, but I'm PHP savvy, so I'm confident that I can do it. I just can't figure out how to create my own module. Any help would be awesome.

Pages

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