Drupal 7 module development
Upcoming SlideShare
Loading in...5
×
 

Drupal 7 module development

on

  • 1,721 views

 

Statistics

Views

Total Views
1,721
Views on SlideShare
1,721
Embed Views
0

Actions

Likes
1
Downloads
29
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Drupal 7 module development Drupal 7 module development Presentation Transcript

  • Adam Kalseyadam@tropo.com@akalsey www.Tropo.com @tropo
  • Who Am I?
  • Activity Stream View slide
  • Phone Poll http://www.flickr.com/photos/comedynose/4584215861/ Vote in polls with SMS or voice http://www.flickr.com/photos/sanberdoo/510894918/ View slide
  • LoginLuxe User eXperience Enahcements
  • PasskeyLogin integrationwith externalsystems
  • The Basicshttp://www.flickr.com/photos/lrosa/2182577107
  • Mostly the sametropo.infoname  =  Tropodescription  =  Voice  and  SMS  Awesomenesscore  =  7.xdependencies[]  =  views  (>2.1)
  • /** * Remove block_callbackfield from {menu_router}. */ Documentationfunction system_update_7064(){ that appears in db_drop_field update.php(menu_router,block_callback);} Update comments
  • Everything’s an Object
  • Everything’s an Object Nodes
  • Everything’s an Object Nodes Users
  • Everything’s an Object Nodes Users Comments
  • Everything’s an Object Nodes Users Comments Files
  • Everything’s an Object Nodes Users Comments Files Taxonomy Terms
  • Everything has a hook http://www.flickr.com/photos/versageek
  • hook_nodeapi($op)
  • hook_node_load
  • hook_node_loadhook_user_loadhook_file_loadhook_comment_loadhook_taxonomy_term_loadhook_blah_load
  • hook_user($op)
  • hook_user($op) hook_user_presave hook_user_insert hook_user_load hook_user_operationNo moreUniversal Business Adaptors
  • Fieldshttp://www.flickr.com/photos/mikecattell
  • <?php  $node->body = array(    und => array(      array(        value  => body here,        summary => teaser here,        format => 1,        safe_value => sanitized body,        safe_summary => sanitized teaser,      )    ),  );?>
  • <?php// Drupal 6db_query("INSERT INTO {mytable} (intvar,stringvar, floatvar) VALUES (%d, %s, %f)", 5,hello world, 3.14);$id = db_last_insert_id();// Drupal 7$id = db_insert(mytable)  ->fields(array(    intvar => 5,    stringvar => hello world,    floatvar => 3.14,  ))  ->execute();?>
  • Form API http://www.flickr.com/photos/teegardin
  • <?php  //Drupal 6  $form[$theme->name][screenshot] = array(#value => $screenshot);  //Drupal 7  $form[$theme->name][screenshot] = array(#markup => $screenshot);?>
  • Function signaturesmy_function($argument, array $options);
  • Lots of little function name changesSet static variables with drupal_static()Email assumes everything’s htmlBlock deltas can be arbitrary stringsNew API for search tab creation
  • Lots of little function name changesSet static variables with drupal_static()Email assumes everything’s htmlBlock deltas can be arbitrary stringsNew API for search tab creationhttp://drupal.org/node/224333
  • Automate the grunt work TextCoder Upgrade module
  • Adam Kalseyadam@tropo.com@akalsey www.Tropo.com @tropo