diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-08 14:06:23 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-08 14:06:23 +0000 |
commit | 5622bce2d52904922a7fd450088bcaed417af7fd (patch) | |
tree | 2999f99426795c0e105dd988241278ac2e66c340 /modules/taxonomy | |
parent | aaaf8f572d1b7a5cb0d0e5b68a5f788adee222b2 (diff) | |
download | brdo-5622bce2d52904922a7fd450088bcaed417af7fd.tar.gz brdo-5622bce2d52904922a7fd450088bcaed417af7fd.tar.bz2 |
#198579 by webernet and hswong3i: a huge set of coding style fixes, including:
- whitespaces at end of lines
- indentation
- control structure usage
- whitespace in empty lines
- phpdoc comment formatting
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 2 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.install | 3 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 8 |
3 files changed, 7 insertions, 6 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index f893147fa..4da4b1dd9 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -151,7 +151,7 @@ function taxonomy_form_vocabulary(&$form_state, $edit = array()) { '#type' => 'fieldset', '#title' => t('Settings'), '#collapsible' => TRUE, - ); + ); $form['settings']['tags'] = array('#type' => 'checkbox', '#title' => t('Tags'), '#default_value' => $edit['tags'], diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install index 1ce9dbf53..d1e2c249f 100644 --- a/modules/taxonomy/taxonomy.install +++ b/modules/taxonomy/taxonomy.install @@ -263,7 +263,8 @@ function taxonomy_schema() { ), 'type' => array( 'type' => 'varchar', - 'length' => 32,'not null' => TRUE, + 'length' => 32, + 'not null' => TRUE, 'default' => '', 'description' => t('The {node}.type of the node type for which the vocabulary may be used.'), ), diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 4ff069726..48187f971 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -69,7 +69,7 @@ function taxonomy_link($type, $node = NULL) { else { foreach ($term as $free_typed) { $typed_terms = drupal_explode_tags($free_typed); - foreach($typed_terms as $typed_term) { + foreach ($typed_terms as $typed_term) { $links['taxonomy_preview_term_'. $typed_term] = array( 'title' => $typed_term, ); @@ -1110,7 +1110,7 @@ function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $p /** * Accepts the result of a pager_query() call, such as that performed by * taxonomy_select_nodes(), and formats each node along with a pager. -*/ + */ function taxonomy_render_nodes($result) { $output = ''; $has_rows = FALSE; @@ -1133,8 +1133,8 @@ function taxonomy_render_nodes($result) { function taxonomy_nodeapi($node, $op, $arg = 0) { switch ($op) { case 'load': - $output['taxonomy'] = taxonomy_node_get_terms($node); - return $output; + $output['taxonomy'] = taxonomy_node_get_terms($node); + return $output; case 'insert': if (!empty($node->taxonomy)) { |