How to check if region is populated from template.php

I can't figure out how to check if a region is populated from the template.php file in drupal 7. I've tried variations of this:

  if ($page['navigation']) {
    $vars['classes_array'][] = 'with-navigation';
  }

Basically, I'd like to add a value to an array only if there is a block in region "navigation."

Does anyone know the correct variable name?

Thanks!

Drupal for mobile website?

My question is weird but I will try to be informative.
I start searching and research about cms open source which can manage mobile websites.
The cms have to be able to accept rulesets on which device to show what, to test the updates before publish to live and also users-editors to have rights to view and edit only their own texts and not others. Any suggestions?

Exporting users Table to Update Multiple Databases

I'm looking to use a single Drupal install to populate a base set of admin users for several different Drupal instances.

Ideally I'd use something like:

  mysqldump -u USER -p'PASSWORD' -h db.EXAMPLE.COM BASE users

to produce some basic SQL that I can just use to update a number of other Drupal databases.

I don't want to drop the other databases and not sure if there is a command line way to do this or if I'm going to have to write a PHP script to take care of this.

How to update a module with new version

I have already installed PathAuto module, now when i go to update reports page it shows me latest release of Pathauto, so can somebody tell me how do i upgrade my previous pathauto module, is that going to impact my existing settings?

same question i have for other modules also, so please let me know the steps to upgrade a module with new version.

Thanks in advance

Regards
Nizam
www.insqlserver.com

Drupal 7 -

Hi all,
I am trying to code a basic custom module.
I have a block in my module and I have it working and displaying. The argument for the view needs to be the node ID. When I specify the node ID as a constant (e.g. 6) it all works fine. I can't find how to get the node ID in the hook block view code, my code is here:

Wildflower website - Taxonomy vs. Content Types

I am looking to get some advice for the structure of a website I am building. (I haven't worked on theming yet so it is not as pretty as it will hopefully be later.)

http://desertwildflower.com

This will be a resource for general desert wildflower species identification and related information as well as for people who want to travel to desert locations to see them. So where the flowers are blooming (national parks, state parks, etc.), when they bloom, and what species are blooming are all important.

Please note there is limited content for now. I'm trying to avoid having to re-enter all of the information if my structure is incorrect.

Basically my confusion is what should be classified as taxonomy vs. custom content types.

I am building this site in D7. (I've been learning D6 off and on for about a year, but I chose to develop in D7 to get experience with it and because the new features totally rock. I find it much easier to understand and to find what I'm looking for. That being said, I'm still learning.)

I have 2 custom content types:

1) Flowers - fields are blooming months, desert (Mojave, Sonoran, etc.) elevation, soil type, height, etc.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x