what is the proper way to remove/delete modules from drupal?

currently i backup my main drupal folder, then if i find i do not like a module or it does not work right, i delte the primary drupal folder and rename the backup.

is this a proper/correct way of reverting drupal?

Drag and drop not working

The drag and drop function is not working on my admin site under the "structure" menu. For example, If I go into blocks I cannot drag and drop. When I select something and try to move it it just highlights everything and the drag and drop arrow freezes on, I have to click on another place on the screen to clear it. I do not have the technical language to describe this accurately but hopefully I am describing this issue clearly enough. I looked at several other posts about this issue but unfortunately many of them are over my head.

Video Module Hell

I've all of about lost my mind at this point. What programs does the video module need installed on my FreeBSD server to get it to work? These guys have some of the worst and most limited documentation I've ever seen in my life. FFMPEG, and FFMPEG-PHP are obviously needed from the ports collection. Is there anything else?

Newbie Help Required. Converting a View to a Module

Hello

I am quite new to module development although I have experience in modifying existing 6.x block modules developed by others. I have a need to develop a 7.x module and in spite of a lot of documentation reading seem to be missing a basic starting point. I have been looking at the documentation on drupal.org and other third party sites but through my own fault seem to be missing a basic concept.

The site I am working on has a content type called project. At present there are many project pages busing this content type. One of the field types is a User Reference field, called key_contact.

The idea is that I need to create a block that gets the key_contact's username (stored as an id number in the key_contact field) and then from that number perform an SQL query, on another table, to get the id's details and then display them in a block.

At present I have a View that can return the id and I have been asked to replace this view with a module that does the entire job.

Once I get the id for the key_contact I will have no trouble with the SQL query and formatting the output how I want it. I am familiar with creating a block module.

Where I am stuck is understanding how to get the key_contact value from the content type project page when it is loaded.

Form alter with preprocess function. #states doesn't work

I'm trying to add to the node add form #states functionality with preprocess function (in the template.php). First I tried to make it such way.

function karapuziki_preprocess_recipe_node_form(&$variables) {
$variables['form']['recipe_source']['#states'] = array(
'visible' => array( // action to take.
':input[name=recipe_yeld]' => array('filled' => TRUE),
),
);
}

It doesn't work at all, Field recipe_source always visible.

after upgrade 6 -> 7 menus no longer expandable

I have a quite simple site that I just upgraded from 6 to 7.4. Now my main menu is not expandable. I don't remember if there was a setting in 6, or it was by default - but it *was* working. Now the top menu shows correct icons for those with and without children (triangles vs. circles) - but clicking on triangle just opens the page and *not* expand the menu.

Interesting, that Administration menu *is* expandable. I tried to switch theme to Garland for user view as well - so, now I can see that "main" menu is not expandable, but "administration" is.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x