Drupal development
Jump to navigation
Jump to search
Framework architecture
An entity is a kind of content stack. The entity base table is tied to fields using bundles. Entity types include node, comment, taxonomy term, user profile, organic group, etc. Fields are used to store and display various data types and can be reused. Entity types and fields can be saved as bundles (i.e., types of node).
- http://www.slideshare.net/ronald_istos/drupal-entities-emerging-patterns-of-usage
- http://www.slideshare.net/erikwebb/drupal-7-and-entities-7036807
hook_entity_info - "Inform the base system and the Field API about one or more entity types."
Themes
- Structure of the .info file
- Default .info values
- Assigning content to regions
- Creating a sub-theme
- JavaScript and jQuery
Templates
Core templates
Forms
For beyond basic content types field layouts;
- http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/7 - programmer's reference to the Drupal Form API
function milk_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'contact_node_form') { $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Send'), ); } }
JavaScript
- Adding JavaScript to your theme or module
- http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/7
<?php drupal_add_js(drupal_get_path('theme', 'mytheme') .'/my_js_file.js', 'theme'); ?>
Other
*1*3*5*7*9*11*14*17*20*23*26*29*32*35*38*41*44*47*50*53*56*59*62*65*68
71*74*77*80*83*86*89*92*95*98*101*105*109*113*117*121*125*129*133*137*141*145*149*153