Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am pretty new to Drupal, but I am pretty familiar with PHP.
I am looking for the place in the code where the $content varible is contructed before being passed into the template. I see it passed around all over the place, but I can't seem to find where it is created.
I know that the $content variable passed in from the function phptemplate_page() to the template and that function takes the $content variable as an argument. So I looked up the calling function of phptemplate_page() and it was call_user_func_array(), and that is where I got stuck.
It is a simple requirement, but I just couldn't have it done.
There are two problems.
1. I changed "Menu containing primary links" to be navigation, and disable most navigation items. however, I just couldn't disable "Create content" item and enable "Create blog" in the menu list.
2. how can i show "my account | logout" for an authenticated user and "register | login" for an annoymous user?
We have a mostly plain text site that we're migrating to Drupal. As part of this task, we have to deal with a bunch of legacy documentation in the form of hierarchical directories that contain static HTML files plus images, which we want to convert to books. It's pretty easy to make the HTML into pages (we're doing some revisions of content at the same time), but getting the images to show up is a different matter. The images that correspond to each HTML file are in the same directory as that file, so the path for each image is always just ./ .
I have installed category+activeselect module on my drupal5 website but I have noticed a bug on Internet Explorer visualization: the second menu elements that depend by the first one appear all white and are unreadable.
When access is not allowed to certain areas of my site, rather than sending the user to the defined Access Denied page (defined in Settings > Error Handling > Default 403 (access denied) page), my system is presenting the user with a blank page that reads:
user account [i.e. page title]
3 [i.e. the only other content on the page]
When I look at the source of the page, it appears Drupal is indeed only reporting "3" back as the page content: