You are here

function farm_help_farm_help_page in farmOS 7

Implements hook_farm_help_page().

File

modules/farm/farm_help/farm_help.module, line 77
Farm help module.

Code

function farm_help_farm_help_page() {
  $output = array();

  // Add general text.
  $output[] = '<p>' . l('farmOS', 'https://farmos.org') . ' is built and maintained
  by a community of volunteers. Some farmOS community resources are listed
  below.</p>';

  // Add a link to the farmOS documentation.
  $output[] = '<h3>Documentation</h3><p>' . l('https://farmOS.org', 'https://farmOS.org') . '</h3>';

  // Add a link to the farmOS forum.
  $output[] = '<h3>Community Forum</h3><p>' . l('https://farmOS.discourse.group', 'https://farmOS.discourse.group') . '</p>';

  // Add a link to the farmOS chat rooms.
  $chat_rooms = array(
    l('#farmOS Riot.im channel on Matrix.org', 'https://riot.im/app/#/room/#farmOS:matrix.org'),
    l('#farmOS IRC channel on Freenode', 'http://webchat.freenode.net/?channels=#farmOS'),
  );
  $output[] = '<h3>Community Chat</h3><p>' . theme('item_list', array(
    'items' => $chat_rooms,
  )) . '</p>';

  // Add a link to the farmOS distribution issue queue.
  $output[] = '<h3>Issue Queues</h3><p>' . l('https://drupal.org/project/issues/farm', 'https://drupal.org/project/issues/farm') . '</p>';
  return $output;
}