Commit bdbbe2b4 authored by TravisCarden's avatar TravisCarden
Browse files

Fixed a few small style issues.

parent 4ed3d7df
......@@ -94,8 +94,7 @@ function hook_checklistapi_checklist_info() {
}
/**
* Alter checklist definitions after hook_checklistapi_checklist_info() is
* invoked.
* Alter checklist definitions.
*
* This hook is invoked by checklistapi_get_checklist_info(). The checklist
* definitions are passed in by reference. Each element of the $checklists array
......
......@@ -104,7 +104,10 @@ function checklistapi_permission() {
// Only link to the checklist if the active user has access to it.
$checklist_name_replacement = user_access($permission) ? l($checklist['#title'], $checklist['#path']) : drupal_placeholder($checklist['#title']);
$perms[$permission] = array(
'title' => t('Edit the !checklist checklist', array('!checklist' => $checklist_name_replacement)),
'title' => t(
'Edit the !checklist checklist',
array('!checklist' => $checklist_name_replacement)
),
);
}
}
......@@ -143,7 +146,7 @@ function checklistapi_sort_array(array $array) {
// Descend into child.
$children[$key] = checklistapi_sort_array($children[$key]);
}
// Sort by #weight.
// Sort by weight.
uasort($children, 'element_sort');
// Remove incremental weight hack.
foreach ($children as $key => $child) {
......
......@@ -94,7 +94,6 @@ function checklistapi_example_checklistapi_checklist_info_alter(&$checklists) {
*/
function checklistapi_example_checklistapi_checklist_info() {
$checklists = array();
$checklists['example_checklist'] = array(
'#title' => t('Checklist API example'),
'#description' => t('An example implementation of the Checklist API.'),
......@@ -276,6 +275,5 @@ function checklistapi_example_checklistapi_checklist_info() {
),
),
);
return $checklists;
}
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