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

' . t('The Ban module allows administrators to ban visits to their site from individual IP addresses.') . '

'; $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' => url('admin/config/people/ban'))) . '
'; $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; }