user_details_help.inc 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. function user_details_help_form($form) {
  3. $intro = t('The "User Details" module comes with two blocks, "User Detils: logged-in user" and "User Details: authored user".');
  4. $intro .= '<br/><br/>';
  5. $background = '<h3>' . t('Background') . '</h3>';
  6. $background .= t('The idea for "User Details" started as a request from an end-user, to have a centreal place for quick links to important locations on the website.') . '<br>';
  7. $background .= t('For Drupal 6 this was just some <a href="http://drupal.org/node/395578">custom code</a> you could add to a custom block.') . '<br/>';
  8. $background .= t('For Drupal 7 the "User Details" module has expanded to its own module, which allows non-coders to alter and customize to thier liking.');
  9. $background .= '<br/><br/>';
  10. $overview = '<h3>' . t('Overview') . '</h3>';
  11. $overview .= t('The "User Details" module is a basic collection of user data (or variables) and commonly used links in a block. In no way is this a required part of any website, only for the ease of naviagtion.') . '<br/>';
  12. $overview .= t('Below is a list of all the stats and links that can be turned on as part of the "User Details" blocks.');
  13. $overview .= t('The links come with some default images, but you can change these by uploading an image to your web server and typing in the location for each image.');
  14. $overview .= '<br/><br/>';
  15. $overview_loggedin = '<div class="overview-loggedin" style="width: 48%; float: left;">';
  16. $overview_loggedin .= '<h3>' . t('User Details: loggedin user') . '</h3>';
  17. $overview_loggedin .= '<ul>';
  18. $overview_loggedin .= '<li>' . t('User avatar') . '</li>';
  19. $overview_loggedin .= '<li>' . t('Joined date') . '</li>';
  20. $overview_loggedin .= '<li>' . t('Post count') . '</li>';
  21. $overview_loggedin .= '<li>' . t('User points') . '</li>';
  22. $overview_loggedin .= '<li>' . t('Role') . '</li>';
  23. $overview_loggedin .= '<li>' . t('Unread private messeges') . '</li>';
  24. $overview_loggedin .= '<li>' . t('Homepage link') . '</li>';
  25. $overview_loggedin .= '<li>' . t('Profile link') . '</li>';
  26. $overview_loggedin .= '<li>' . t('Profile edit link') . '</li>';
  27. $overview_loggedin .= '<li>' . t('Private message link') . '</li>';
  28. $overview_loggedin .= '<li>' . t('Create link') . '</li>';
  29. $overview_loggedin .= '<li>' . t('Admin link') . '</li>';
  30. $overview_loggedin .= '<li>' . t('Panels link') . '</li>';
  31. $overview_loggedin .= '<li>' . t('Views link') . '</li>';
  32. $overview_loggedin .= '<li>' . t('Performance link') . '</li>';
  33. $overview_loggedin .= '<li>' . t('Logout link') . '</li>';
  34. $overview_loggedin .= '<li>' . t('Custom link one') . '</li>';
  35. $overview_loggedin .= '<li>' . t('Custom link two') . '</li>';
  36. $overview_loggedin .= '<li>' . t('Custom link three') . '</li>';
  37. $overview_loggedin .= '<li>' . t('Custom link four') . '</li>';
  38. $overview_loggedin .= '<li>' . t('Custom link five') . '</li>';
  39. $overview_loggedin .= '<li>' . t('Recent Content') . '</li>';
  40. $overview_loggedin .= '</ul>';
  41. $overview_loggedin .= '</div>';
  42. $overview_authored = '<div class="overview-authored" style="width: 48%; float: left;">';
  43. $overview_authored .= '<h3>' . t('User Details: authored user') . '</h3>';
  44. $overview_authored .= '<ul>';
  45. $overview_authored .= '<li>' . t('User avatar') . '</li>';
  46. $overview_authored .= '<li>' . t('Joined date') . '</li>';
  47. $overview_authored .= '<li>' . t('Post count') . '</li>';
  48. $overview_authored .= '<li>' . t('User points') . '</li>';
  49. $overview_authored .= '<li>' . t('Role') . '</li>';
  50. $overview_authored .= '<li>' . t('Profile link') . '</li>';
  51. $overview_authored .= '<li>' . t('Private message link') . '</li>';
  52. $overview_authored .= '<li>' . t('Recent Content') . '</li>';
  53. $overview_authored .= '</ul>';
  54. $overview_authored .= '</div>';
  55. $closing = '<div style="float: none; clear: both;">';
  56. $closing .= '<br/><br/>';
  57. $closing .= t('NOTE:') . '<br/>';
  58. $closing .= t('*All users will be able to see: stats, user links content list.') . '<br/>';
  59. $closing .= t('*All admin will be able to see: stats, user links, content list and admin links.') . '<br/>';
  60. $closing .= t('*The custom links have a dropdown menu to determine which type of user will be able to view them.');
  61. $closing .= '<br/><br/>';
  62. $closing .= t('This module is under active development. Any feature request, bug report or issue you might find, please make a new issue in the ') . '<a href="http://drupal.org/project/issues/user_details?categories=All">' . t('"User Details" issue queue') . '</a>.';
  63. $closing .= '</div>';
  64. $hr = '<hr>';
  65. $form['intro']['markup'] = array(
  66. '#markup' => $intro,
  67. );
  68. $form['background']['markup'] = array(
  69. '#markup' => $background,
  70. );
  71. $form['overview']['markup'] = array(
  72. '#markup' => $overview,
  73. );
  74. $form['overview_loggedin']['markup'] = array(
  75. '#markup' => $overview_loggedin,
  76. );
  77. $form['overview_authored']['markup'] = array(
  78. '#markup' => $overview_authored,
  79. );
  80. $form['closing']['markup'] = array(
  81. '#markup' => $closing,
  82. );
  83. $form['hr']['markup'] = array(
  84. '#markup' => $hr,
  85. );
  86. return $form;
  87. }
  88. ?>