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:
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.
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.
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.