Commit 2afa3d58 authored by Steven Jones's avatar Steven Jones

Fix code style of hosting.install.

parent 4c076cdc
......@@ -5,14 +5,14 @@
*/
/**
* Implementation of hook_install().
* Implements hook_install().
*/
function hosting_install() {
drupal_install_schema('hosting');
}
/**
* Implementation of hook_schema().
* Implements hook_schema().
*/
function hosting_schema() {
$schema['hosting_context'] = array(
......@@ -28,18 +28,18 @@ function hosting_schema() {
'length' => 50,
'not null' => TRUE,
),
),
),
'primary key' => array('nid'),
'unique keys' => array(
'name' => array('name')
),
),
);
return $schema;
}
/**
* Implementation of hook_update_N().
* Implements hook_update_N().
*/
function hosting_update_1() {
$ret = array();
......@@ -48,8 +48,8 @@ function hosting_update_1() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Update function to remove unused table
*/
function hosting_update_2() {
......@@ -59,8 +59,8 @@ function hosting_update_2() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Hide hostmaster and hostslave profiles.
*/
function hosting_update_3() {
......@@ -70,12 +70,12 @@ function hosting_update_3() {
$in[] = (int) $obj->nid;
}
$in = implode(", ", $in);
$ret[] = update_sql("UPDATE {node} SET status = 0 WHERE nid IN (" .$in. ")", $values);
$ret[] = update_sql("UPDATE {node} SET status = 0 WHERE nid IN (" . $in . ")", $values);
return $ret;
}
/**
* Implementation of hook_update_N().
* Implements hook_update_N().
*
* Enable the modalframe and jquery_ui modules.
*/
......@@ -86,7 +86,7 @@ function hosting_update_6000() {
}
/**
* Implementation of hook_update_N().
* Implements hook_update_N().
*
* Change the default configured blocks to match eldir.
*/
......@@ -107,8 +107,8 @@ function hosting_update_6001() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* no-op - this used to verify one platform and all sites but breaks
* major upgrades.
*/
......@@ -117,8 +117,8 @@ function hosting_update_6002() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Lower the default amount of concurrent tasks.
*/
function hosting_update_6003() {
......@@ -128,8 +128,8 @@ function hosting_update_6003() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Stricter initial permissions for the anonymous user.
*/
function hosting_update_6004() {
......@@ -143,8 +143,8 @@ function hosting_update_6004() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Move some menu items to the primary links menu.
*/
function hosting_update_6005() {
......@@ -173,8 +173,8 @@ function hosting_update_6005() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Move the platforms into primary links.
*/
function hosting_update_6006() {
......@@ -195,8 +195,8 @@ function hosting_update_6006() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Update the default db_server now that we've merged the webserver and dbserver nodes
* See http://drupal.org/node/731550
*/
......@@ -207,15 +207,15 @@ function hosting_update_6007() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Add hosting_context table to map alias names.
*/
function hosting_update_6008() {
$return = array();
if (!variable_get('hosting_update_6008_run', false)) {
if (!variable_get('hosting_update_6008_run', FALSE)) {
db_create_table($return, 'hosting_context', array(
'fields' => array(
'nid' => array(
......@@ -229,14 +229,14 @@ function hosting_update_6008() {
'length' => 50,
'not null' => TRUE,
),
),
),
'primary key' => array('nid'),
'unique keys' => array(
'name' => array('name')
),
),
));
variable_set('hosting_update_6008_run', true);
variable_set('hosting_update_6008_run', TRUE);
$records = array();
......@@ -263,8 +263,8 @@ function hosting_update_6008() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Fix the reference to the master server so that it no longer points at localhost.
*/
function hosting_update_6009() {
......@@ -282,8 +282,8 @@ function hosting_update_6009() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Add url aliases for the context names that are registered.
*/
function hosting_update_6010() {
......@@ -304,8 +304,8 @@ function hosting_update_6010() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Clients and packages were imported as belonging to the anonymous user. Reassign them to the admin user.
*/
function hosting_update_6011() {
......@@ -317,7 +317,7 @@ function hosting_update_6011() {
}
/**
* Implementation of hook_update_N().
* Implements hook_update_N().
*
* Remove the hosting summary block.
*/
......@@ -333,8 +333,8 @@ function hosting_update_6012() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Add a permission allowing users to view the 'site disabled' message, which got
* lost when 'access content' permission was revoked a while ago.
*/
......@@ -348,8 +348,8 @@ function hosting_update_6013() {
}
/**
* Implementation of hook_update_N().
*
* Implements hook_update_N().
*
* Restore proper weight to the hosting module.
*
* For some obscure reason, the weight is 10 which makes its updates run
......@@ -360,5 +360,3 @@ function hosting_update_6014() {
$ret[] = update_sql("UPDATE {system} SET weight = 0 WHERE type='module' and name='hosting'");
return $ret;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment