Drupal Coding Standards Essay

Decent Essays

Drupal Coding Standards Drupal coding standards are independent of the version number, type and are "always-concurrent". All new code should follow current standards, regardless of initial type. Availed code found in an older version always needs updating, but it does not certainly have to be. Especially for larger code-bases (like Drupal core), updating the code of a previous version for your instant standards is too difficult a task. However, the code in current versions follows certain implementable standards. Do not squeeze coding standards updates/clean-ups into otherwise unrelated coding methods. Only touch code lines are always relevant. To update existing code for your accessed standards, create separate and devoted issues as well …show more content…

*/ function first_block_view($block_name = '') { if ($block_name == 'list_modules') { $list = module_list(); $theme_args = array('items' => $list, 'type' => 'ol'); $content = theme('item_list', $theme_args); $block = array( 'subject' => t('Enabled Modules'), 'content' => $content, ); return $block; } } ?> Indenting and Whitespace In Drupal

Get Access