deborah's blog

Change button name using form_alter

<?php
/**
* Implementation of hook_form_alter().
*
* The function is named modulename_form_alter.
*/
function my_hook_module_form_alter(&$form, $form_state, $form_id) {
// Normally a switch is used because you may want to alter more than
// one form and it is easy to add a new case for each form.
switch ($form_id) {
// This is our form ID.
case 'my_new_form_node_form':
// Our kickin' mods go here.
$form['submit'] = array(
'#type' => 'submit',

BAD Camp 2010 - Top 100 Useful Modules

Fuzetto Intranet Solution

An intranet "portal" is defined not merely by the technology platform that makes it run. When you get beyond the buzzword, a portal supports an organization and its employees by aggregating and organizing all the
information and applications that users want and need to function effectively in their jobs.

Backup your Data!!

I cannot stress enough how important it is to back up your code and your database on a regular basis. If you don't own the code then remind your clients to back up their code.

Technology is not perfect and things do happen. Make sure you have a backup plan that will fit your needs in case of the unfortunate issues that may arise. If you host your site with an ISP find out what their backup schedule is and how much it costs to recover data. Do not reply on these backups but make sure it is there. Store your backups on a different server or at an off site location.

A Drupal Process

Fuzetto Web Solutions has been success using a Drupal Process based on a session from the Do It With Drupal conference.

I have found that every project I work on that follows this process has been on time, on budget and stress free. We are working on developing on this process that allows our clients to be more in tune with the status.

Fuzetto Top 100 added to WebEnabled

Fuzetto's top 100 module list is added to WebEnabled Quick Browse Top 100.

Fuzetto Web Solutions is evaluating WebEnables instant development platform to see if this is a good solution for developing Drupal websites.

When in doubt clear the cache

Have you wasted time trying to figure out why something won't worked and then find out all you needed to do was clear the cache?

UGH!

When in doubt always clear the cache so you can just rule that out.

You might also want to check the logs. You can get clues there.

Panels session at BDUG

On Tuesday, February 23, 2012, I presented at the Berkeley Drupal User Group about Panels.

We went over Page Manager, Panel Pages, Panel nodes, mini-panels, views panes, layouts and styles.

I attached the module that has the custom style and the folder with the custom layout.

Don't forget to add plugins[panels][layouts] = layouts to your theme .info file.

Redirect User After Login by Role

Here is how I redirect a user after they login. The destination may be different based on role.

function mymodule_user ($op, &$edit, &$account, $category = NULL) {

if ( $op == "login" ){
   if( module_exists("somerequiredmodule") ){
     $dest = mymodule_get_destination();
     drupal_goto( $dest );
   }

}

}

Drupal Scalability

Lately I have been approached by many companies questioning the performance and scalability of Drupal.  As more and more sites are using Drupal with many more vistitors, this is a really important issue that needs to be addressed.  I have always considered this issue to be the responsibility of the system administrators but what I am finding out is that most SA's don't know a thing about Drupal or really care to learn.  An vice versa, Drupal developers like myself don't really have an interest or knowledge in working with server optimization.