' . t('About') . ''; $output .= '

' . t('The Ban module allows administrators to ban visits to their site from individual IP addresses. For more information, see the online documentation for the Ban module.', array('!url' => 'https://drupal.org/documentation/modules/ban')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Banning IP addresses') . '
'; $output .= '
' . t('Administrators can enter IP addresses to ban on the IP address bans page.', array('!bans' => \Drupal::url('ban.admin_page'))) . '
'; $output .= '
'; return $output; case 'admin/config/people/ban': return '

' . t('IP addresses listed here are banned from your site. Banned addresses are completely forbidden from accessing the site and instead see a brief message explaining the situation.') . '

'; } } /** * Implements hook_permission(). */ function ban_permission() { return array( 'ban IP addresses' => array( 'title' => t('Ban IP addresses'), ), ); } /** * Implements hook_menu(). */ function ban_menu() { $items['admin/config/people/ban'] = array( 'title' => 'IP address bans', 'description' => 'Manage banned IP addresses.', 'route_name' => 'ban.admin_page', 'weight' => 10, ); $items['admin/config/people/ban/delete/%'] = array( 'title' => 'Delete IP address', 'route_name' => 'ban.delete', ); return $items; }