Anything about edit previleges of clients

I have this site that i am supposed to be building for a client. Now while i am halfway through the process i keep worrying about how i would render the edit privileges to the client so that it can be maintained minimally on my end.

why drupal_static ?

Here we see:

function drupal_set_page_content($content = NULL) {
     $content_block = &drupal_static(__FUNCTION__, NULL);

but why not just
function drupal_set_page_content($content = NULL) {
     static $content_block = null;

Can some one help us to make it clear why we use drupal_static but not just a static variable inside function?

function 'image_node_form' not found or invalid function name in drupal_retrieve_form()

I'm upgrading a Drupal 6 site that used Images to Drupal 7 and I'm having a problem. After I performed the migration, I enabled the core Image module then I went to the Content Migrate and migrated field_photo. Then I went to a node with an image and nothing was displayed. When I attempted to edit the node, I was greeted with this lovely message:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'image_node_form' not found or invalid function name in drupal_retrieve_form() (line 841 of /home/louusiteadmin/

Files/viruses are getting uploaded to tmp folder

Lately we have been getting .php.tmp files in our Drupal tmp directory (C:\Windows\Temp), and our anti-virus catches them as trojans/viruses.

The date stamp on the files correspond to log entries where foreign IP addresses are trying to access /wordpress/ paths in our drupal directory. (Which do not exist, and they get 404 errors).

How to have slideshows in mobile device


I have created a region in tpl file:

<div class="slideshow row ">
<?php print render($page['slideshow']); ?>

I have created a content type. Then added the contents/slides. Created views slideshow block. Placed the views slideshow block to the above region.


Subscribe with RSS Subscribe to RSS - Drupal 7.x