Commit 50dd6389 authored by Ganesharatnam's avatar Ganesharatnam
Browse files

Tested for code review

parent 95efb767
...@@ -51,6 +51,16 @@ function uw_lib_refshelf_block_view($delta = '') { ...@@ -51,6 +51,16 @@ function uw_lib_refshelf_block_view($delta = '') {
return $block; return $block;
} }
/**
* Implements hook_help().
*/
function uw_lib_refshelf_help($path, $arg) {
switch ($path) {
case 'admin/help#uw_lib_refshelf':
return '<p>' . t("List/Search functionality for online reference shelf categories and resources to the Library website.") . '</p>';
}
}
/** /**
* Implements hook_form(). * Implements hook_form().
*/ */
...@@ -122,8 +132,8 @@ function uw_lib_refshelf_render_data() { ...@@ -122,8 +132,8 @@ function uw_lib_refshelf_render_data() {
$parent_data = _getDataORS($cat_id, $url); $parent_data = _getDataORS($cat_id, $url);
$element = $parent_data['data']; $element = $parent_data['data'];
if (!empty($element)) { if (!empty($element)) {
$tit = $element[0]['name']; $tit = $element[0]['name'];
_setBreadCrumbsORS("cat_id", $cat_id, $tit, 0); _setBreadCrumbsORS("cat_id", $cat_id, $tit, 0);
} }
$txt = "<h2>" . $tit . "</h2><br />"; $txt = "<h2>" . $tit . "</h2><br />";
$_SESSION['tit'] = $txt; $_SESSION['tit'] = $txt;
......
Supports Markdown
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