Drupal Webmaster Services

Need someone to configure or manage your drupal installation for you? Support services?

Snow Valley consulting can help setup, configure, manage and update every aspect of your drupal installation.

We can also help you build and design new drupal websites, upgrade existing sites and provide SEO (Search Engine Optimization) advice.

A list of sites we provide webmaster services for.

Looking for a Drupal 7 Tutor for personal site.

I am looking for a few hours of tutoring to help me with my Drupal 7 site. I can't seem to get Media set up correctly and could use some help with Views and formatting Views output. My office in is Monrovia, home in Sierra Madre or I can come to you. Would prefer in person. Thanks

One Shoe is looking for experienced Drupal developers!

One Shoe is expanding rapidly, so we have several jobopportunities for Drupal and Mobile developers in the Netherlands.

One Shoe has been an international player in the Drupal community for almost 7 years now. One Shoe is specialized in large scale Drupal implementations and mobile development. We are working for international clients from our headquarters in Utrecht in the historic centre of the Netherlands. One Shoe is expanding rapidly to meet international demand and is hiring new staff and looking for opportunities to open a shop in Germany. Are you interested in working on large scale implementations for web and mobile and do you like a challenge, then One Shoe is a great place to work!

Jobdescription
For large (inter)national clients you will realize challenging websites, web applications and mobile applications. You will closely cooperate in a team with strategists, user experience (UX) professionals, concepters, designers, front and backend developers. Your work will be of the highest technical level in the Drupal landscape and trainings will be provided to reach this level.

One Shoe is currently looking for Front and Backend developers with multiple years of PHP/MYSQL experience.

Culture

get field names for table

I'm quite new to drupal (and PHP) but already starting to like it a lot!

To learn the internals I started poking around inside the ecomerce module and found this

/**
 * The names of the database columns in the table.
 */
function product_fields($table = 'ec_product') {
  return array('nid', 'sku', 'price', 'is_recurring', 'price_interval', 'price_unit', 'price_cycle', 'auto_charge', 'ptype', 'hide_cart_link');
}

If prefer to make these kind of things automatic. After reading this I put together the following function:

function my_db_get_table_field_names($table) {
  // Druplifed version of solution found at:
  //       http://se2.php.net/manual/en/function.mysql-list-fields.php

  $sql = "SHOW COLUMNS FROM `$table`";
  $field_names = array();
  $result = db_query($sql);

 for($i=0;$i<db_num_rows($result);$i++){
   $row = db_fetch_array($result);
   $name = $row['Field'];
   array_push($field_names, $name);
  }
  
 return $field_names;
}

I've tried to search drupal.org to see if there is something similar already in Drupal but couldn't find anything.

Is this something people would like to have in future versions of database.mysql.inc? If not, what is the best way for me to assemble a library of useful functions - is it a module or a .inc-fi

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x