Drupal is up and running but how do I ...?

include path in drupal

I'm wondering where the conventional place to add 3rd party libraries in drupal is. For example, I would like to make use of some PEAR libraries. I can not guarantee that pear will be in the include path, so i'd like to package them with my installation of drupal. Where would i put these libs , and how would i make them available to the rest of drupal?

Pass variables from module to template. How?

I want some variables from my module to be available in page.tpl.php:

  • head_title
  • language
  • site
  • ...
  • ....
  • my_variable

In this example variables are defined inside the template. But how can I pass them from my module?

function _phptemplate_variables($hook, $vars) {
   switch($hook) {
     case 'comment' :
        $vars['newvar'] = 'new variable';
        $vars['title'] = 'new title';
        break;
   }
   return $vars;
}

after install drupal cvs and image cvs, i can't create image node

after install drupal cvs and image cvs, i can't create image node

keep getting this error message

"warning: move_uploaded_file(): Moved: '/var/tmp/phpghcbO8' to 'tmpxyz/tmp_LXlN0j' in /home/recipesh/public_html/includes/file.inc on line 238.
"

Looking for friendly documentation about forms

G'day, I'm looking for some documentation about how to display, post and process forms in Drupal. Basically, I need an overview of how forms operate in and intergrate with Drupal. I've looked in the API Docs (http://drupaldocs.org/api/4.6/group/form) and other places (http://drupal.org/project/forms) but this does not tell me how the functions relate and should be used. Where should I look?

Thanks!!

Stripping <p> and </p> from check_output

so check_output is messing up my formatting on some stuff because it admends paragraph tags to everything it filters....is there a way I can stop this or something else I can use to filter with?

here's the code

Messed Up

I had categories created but in my haste to clean up I changed them to appear on the home page. Now I can't seem to add pages that can be slotted to a specific category. All I see in the create content page is the categories without the ability to select the appropriate one.

Any help would be appreciated.

Pages

Subscribe with RSS Subscribe to RSS - Post installation