Creating additional core module hooks for Drupal 7 modules?!

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.

Any ideas?

Seeking Professional PHP Programmer to Screen Programmer's Code

We are seeking an expert PHP programmer (knows Drupal as well) to screen & test short scripts from potential programmers we are looking to hire.

We are seeking someone who has been programming PHP for years who cares about quality & knows the signs of weak code vs. top notch code.

We know this will take maybe 10-20 minutes for each programmer's script we send you.

Please provide us the following:

1. What elements do you look for in code that makes it above average?

2. Have you done this sort of task before?

Drupal SLOW on localhost (XAMPP & WAMP) WINXP

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.

Script for adding or removing a prefix on existing tables in mysql

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,..." #

Need help in converting existing site to drupal

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,

How difficult is to convert normal HTML site to Drupal.

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.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x