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.
Hi im having a problem with the site search,
When im searching something in my website i get a blank white screen.
Ive checked the error and this is what i get:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'search_view' was given in-menu_execute_active_handler() (line 503 in-/home/razielli/domains/switchup.co.il/public_html/includes/menu.inc).
Does anyone know what this error is about and how can i fix it?
I don't have the typical ordered-by-date news stories. I'm creating content "out of order" and would like to be able to pick where it goes on the front page.
Would someone recommend some ways to do this most effectively?
Can you tell me how to dislay in a block only the articles type of nodes? Drupal have an option to display blocks only on specified pages, but I need to make a block that displays only the Articles type of content and an another block with recent forum topics. How can I do that? Please help me,
I am developing a new Drupal website for a non-profit. The last challenge is incorporating a donation-submission form (using SecurePay US, for whom there is no applicable module): when the form code is inserted, the form simply doesn't show up.
I am still inexperienced enough with Drupal to not know whether this is a simple configuration issue (the page is set to Full HTML and I have disabled all HTML filters) or some inherent characteristic of Drupal itself.
Will post any other relevant information as needed. Can anyone help me out here?
Hi Guys - I am having an issue, while I'm trying to override the "Edit Profile" form. I need a separate URL for edit profile of the user. For this, I have created a URL using Module's hook_menu hook. In the page callback function, i'm trying to load the form using the below code:
function edit_profile() {
global $user;
$output=drupal_render(drupal_get_form('user_profile_form'));
return $output;
}
But, it's just giving me below errors and not returning me the form. Can anyone guide me please.
I'm trying to output themed content to a page and I've been trying to read up on the theme() function and how it works. As I understand, it provides a method to generate themed HTML. That's exactly what I want. Now, what I don't understand is how I pass it the HTML or the variables I want so that the HTML is generated. What's the $hook parameter? Is it a .tpl.php file? How do I structure this file so that the HTML is displayed in the content section of the page? Can someone explain the theme() function in a very simple way?