Skip to content
Snippets Groups Projects

Issue #2831700: Fixed Coding Standards

2 unresolved threads
3 files
+ 28
14
Compare changes
  • Side-by-side
  • Inline
Files
3
<?php
/**
* @file
* {@inheritdoc}
*/
/**
* Implements hook_schema_alter().
*/
@@ -39,7 +44,7 @@ function views_term_hierarchy_weight_field_install() {
$schema = array();
views_term_hierarchy_weight_field_schema_alter($schema);
foreach(array('hweight', 'hdepth') as $field) {
foreach (array('hweight', 'hdepth') as $field) {
Please register or sign in to reply
if (!db_field_exists('taxonomy_term_data', $field)) {
db_add_field('taxonomy_term_data', $field, $schema['taxonomy_term_data']['fields'][$field]);
}
@@ -68,7 +73,7 @@ function views_term_hierarchy_weight_field_install() {
* Implements hook_uninstall().
*/
function views_term_hierarchy_weight_field_uninstall() {
foreach(array('hweight', 'hdepth') as $field) {
foreach (array('hweight', 'hdepth') as $field) {
Please register or sign in to reply
db_drop_field('taxonomy_term_data', $field);
}
db_drop_field('menu_links', 'hweight');
@@ -79,7 +84,6 @@ function views_term_hierarchy_weight_field_uninstall() {
/**
* Implements hook_update_N().
* Create missing table fields.
*/
function views_term_hierarchy_weight_field_update_7005() {
views_term_hierarchy_weight_field_install();
Loading