removed mods directory from the ATutor codebase
[atutor.git] / mods / hello_world / sublinks.php
diff --git a/mods/hello_world/sublinks.php b/mods/hello_world/sublinks.php
deleted file mode 100644 (file)
index c0d6310..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-if (!defined('AT_INCLUDE_PATH')) { exit; }
-
-/*****
-* Free form PHP can appear here to retreive current information
-* from the module, or a text description of the module where there is
-* not current information
-*****/
-
-global $db;
-
-$link_limit = 3;               // Number of links to be displayed on "detail view" box
-
-$sql = "SELECT hello_world_id, value FROM ".TABLE_PREFIX."hello_world WHERE course_id=".$_SESSION[course_id].
-       " ORDER BY value LIMIT $link_limit";
-$result = mysql_query($sql, $db);
-
-if (mysql_num_rows($result) > 0) {
-       while ($row = mysql_fetch_assoc($result)) {
-               /****
-               * SUBLINK_TEXT_LEN, VALIDATE_LENGTH_FOR_DISPLAY are defined in include/lib/constance.lib.inc
-               * SUBLINK_TEXT_LEN determins the maxium length of the string to be displayed on "detail view" box.
-               *****/
-               $list[] = '<a href="'.AT_BASE_HREF.url_rewrite('mods/hello_world/index.php?id='. $row['hello_world_id']).'"'.
-                         (strlen($row['value']) > SUBLINK_TEXT_LEN ? ' title="'.$row['value'].'"' : '') .'>'. 
-                         validate_length($row['value'], SUBLINK_TEXT_LEN, VALIDATE_LENGTH_FOR_DISPLAY) .'</a>';
-       }
-       return $list;   
-} else {
-       return 0;
-}
-
-?>
\ No newline at end of file