Does anyone know of a way to define a hook for another module?
For example, in drupal 6 the hook_my_hook could be defined on behalf of the node module by creating your own node_my_hook in any included module. In Drupal 7, this does not appear to work. I'm guessing that this may be due to the changes to the registry, but I haven't had time to investigate.
I have drupal up and running (on both web servers on windows XP) but it is extremely (5-90 secs / each request especially admin-->modules). I researched this topic and tried many methods and all did not remedy the problem. Here is some things I did:
1. Disabled the update module
2. Increased memory_limit to over 512M
3. Increased the timeout time to over 180s
4. Removed excess CSS / JS.
I was given the task of combining 2 databases into one database using drupal table prefixing, I didn't find an easy way to do it so I wrote a simple script that will add a string prefix to all tables in a database, or remove a string prefix from all tables in a database. It might come in handy for someone.
#!/usr/local/apache2/bin/php
<?php
############################################################
# prefix or remove prefix from mysql tables #
# Author : Mark Crandell #
# User : markDrupal #
# Date : March 16, 2009 #
############################################################
# This script runs with PHP. It accepts 3 arguments, #
# 1. the database name #
# 2. the prefix #
# 3. (optional) "remove" or "r" to reverse the operation #
# and remove the prefix. #
# Example : ./prefix.php mydatabase prefix_
# Example : ./prefix.php mydatabase prefix_ remove
# The script adds a prefix to all tables in a specified #
# database. #
# NOTE : Be sure to set the password #
# For safety, you uncomment "if(!in_array($db_name,..." #
We want to retain the existing design. Site itself is not very complex. It has collapsable side menu bar(with images, highlighting, etc.,), Some actual content has tabbings with different links. Other than that it is quite straight forward.
PM me with your recent works, estimated rate and for other details. Thanks,
I started researching on using drupal or wordpress. Our current site is developed on pure HTML, which is why it is very difficult to add/edit content.
Site itself is not very complex. It has collapsable side menu bar(with images, highlighting, etc.,), Some actual content has tabbings with different links. Other than that it is quite straight forward.
Any tools to convert the html site to drupal? I am also considering the option to have some experienced person to help us out. So PM me if you can help us.