kbahey's picture
Current Role(s): 
Managing Partner and Co-Founder
2bits.com, Inc.

Professional Info

Companies Worked For

Personal Info

Languages spoken: 


On Drupal.org for 14 years 4 months

Over 50 edits
Drupal Contributions: 

Khalid has been a contributer to the Drupal project, and a member of the community since 2003. He is also a permanent member of the General Assembly for the Drupal Association.

As co-founder of 2bits.com, Inc., he provides various Drupal services to clients, including customization, development, performance tuning and consulting for Drupal web sites. Since 2bits.com, Inc. is an active contributor to Drupal, it is listed on the Drupal services section of this web site.

Khalid is one of the most active developers for Drupal, as well in the top 10 contributors to Drupal.

Core features

As a member of the community, Khalid developed the following features which are part of Drupal core.:

- #32622: Site offline/maintenance feature (also #35410).
- #63881: Watchdog hook, and logging and alerts for Drupal 6 and #67893 and #76588. This led to me being the maintainer of logging and alerts starting with Drupal 6 through Drupal 7.
- #142773: Drupal to work behind reverse proxies, which was written for Drupal.org when it started to run behind a Squid proxy.
- #275092: HTML meta and HTTP Headers for Drupal version, which allows for fingerprinting sites for version, for statistics, vulnerabilities, and more.
- #106559: Implement an automatic whitelist for path alias lookups to reduce the number of queries that Drupal makes. Even going as far as to make path.inc itself swappable, so sites can implement whatever way they think is best for them, in #320132.
- #146386: Theming of "submitted" for nodes and comments, to make customizing of these author and date/time easier and more consistent.
- Also for performance reasons, I was part of getting #156582: http_request to have a configurable timeout.

Other minor core changes and fixes include #16829: Separating the forum block for the sake of consistency, #16590: adding a subject to contact form, #22127: fixing the search box in PHPTemplate-based core themes, #31341: delete a user's session when a user is deleted, and #122709: fix for wrong SQL arguments, and #162463: notices, #244597: remove old pre-formAPI text from login page and #293343: remove reference to obsolete table name nominated to the most trivial patch of the month.

Community contributions

Khalid, and 2bits.com, maintain several modules that run on drupal.org, as well as the association web site.

These include:

Google Summer of Code

Khalid has mentored students for Google Summer of Code Drupal projects since the program's inception in 2005. Students from past years have become mentors themselves in subsequent years.

Contributed modules

2bits.com, Inc, has written many modules for clients or for web sites we run, and contributed them to the community.

Here is a list that we occasionally update, and would give you an idea on what 2bits.com, Inc. can do for you.

Drupal Groups

Khalid started very early on with the Toronto Drupal Users Group, in 2006. Later, he co-founded the Waterloo Region Drupal Users Group, and presented several talks to that group as well as helped source speakers and sessions.

Presentations and talks

As part of promoting Drupal, the following presentations and talks were conducted:

Many of the above presentations are available on 2bits.com, Inc. web site.

You can also find many Drupal articles on 2bits, as well as the Drupal section of Khalid's blog.

Areas of Expertise: 
Performance Expert
System Administrator
Site builder
Project Manager
Drupal Events: 
Drupal conference colocated with the Open Source CMS and Blogging Tools Summit (Vancouver, Canada)
DrupalCon Boston 2008
DrupalCon DC 2009
DrupalCon San Francisco 2010

Credited on 1 issue fixed in the past 1 year


My mentors: 
Dries’s picture

5 people list kbahey as a mentor

I contributed Drupal modules
I contributed Drupal themes
I contributed to Drupal issue queues
I contributed Drupal documentation
I contributed Drupal translations
I reviewed Project applications
I help in the Drupal support forums
I provide Drupal-related services
I help mentor new contributors