How to change the description of a form field with hook_form_alter (D7)

There is a contenttype "teams" and one field "field_name".
I'm trying to change the field description below input field with hook_form_alter() with a custom module (D7)

function teams_form_alter(&$form, &$form_state, $form_id) {

switch ($form_id) {
    	case 'teams_node_form':
	$form['field_name']['#description'] =  t('Test');
	break;
             }
}

Nothing happens, I don't no why.

Overlay remove my sidebar

Hello,

I'm creating a theme for drupal 7, based on garland... no problem until now.

I try to make my theme compatible with overlay, but there is something strange with it.

On the overlay.tpl.php page, there is a code
print $page;
That display all the page in the overlay. It directly take the informations in the common page.tpl.php file.

The problem is that in my page.tpl.php file I have that code :

if ($page['sidebar']):

Change CSS on click?

I want to have nodes with lyrics and chords on my site. I need a mechanism to display them either as lyrics or as lyrics with chords without creating two nodes for each song.

Basically I need a button on a node that changes the style (css) of the content on click. (I would mark the chord- and lyrics-lines appropriate.) I couldn't find a module that is able to do so.
Maybe I missed one or you know a better technique?

Here is a short example of what I want to accomplish:

Drupal 7 install issues resolved - custom php.ini - WHM / cPanel - Centos 5.5

Hello,

I recently installed Drupal 7 to several of my clients sites hosted on a WHM / cPanel hosting service, and came across a number of issues that resolved by using the following PHP.INI file in the root directory of the Drupal 7 installation.
The issues mainly focused on uploading files to the server, such as a custom logo.

Include drupal session in a custom php file.

My problem is that i send post data to a file name examle.php and i start a session there, save data and realocate the data intoa drupal page.

so when i call that data from the $_SESSION["sometin"] there is no data.

what can i do to call that drupal session from a custom php file.

thx for all.

Gallery2 to drupal?

I have a drupal 6 site that is currently using the gallery module to bridge a fairly large gallery2 installation. I have been considering moving this into drupal but haven't a clue how to go about it.
My requirments are
1) import file titles, comments, descriptions, and galleries from current G2 database and match them to the correct files
3)Descriptions on thumbnails
2)Subgalleries with descriptions

Currently each user has their own gallery but I would be willing to drop this feature.
I would also be willing too upgrade to Drupal7.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x