' . t('About') . ''; $output .= '
' . t('The Ban module allows administrators to ban visits to their site from individual IP addresses.') . '
'; $output .= '' . 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; }