function smart_ip_views_bridge_help in Smart IP 6.2
Same name and namespace in other branches
- 6 modules/smart_ip_views_bridge/smart_ip_views_bridge.module \smart_ip_views_bridge_help()
- 7.2 modules/smart_ip_views_bridge/smart_ip_views_bridge.module \smart_ip_views_bridge_help()
Implements hook_help().
File
- modules/
smart_ip_views_bridge/ smart_ip_views_bridge.module, line 19 - Smart IP Views Bridge exposes Smart IP visitor's location details to Views field (coordinates, country, ISO 3166 2-character country code, region, region code (FIPS), city and zip) and filter (country, ISO 3166 2-character country code,…
Code
function smart_ip_views_bridge_help($path, $arg) {
switch ($path) {
case 'admin/help#smart_ip_views_bridge':
return '<p>' . t("Smart IP Views Bridge exposes Smart IP visitor's location details to \n Views field (coordinates, country, ISO 3166 2-character country code, \n region, region code (FIPS), city and zip) and filter (country, ISO 3166 \n 2-character country code, region, region code (FIPS), city and zip).") . '</p><p>' . '<p>' . t('Guide/example of using Smart IP views fields and filters with Location module:') . '</p><p>' . '<ol><li>' . t('Download/install Location module.') . '</li>' . '<li>' . t("Add location CCK field to <q>Page</q> content type (be sure to select \n <q>Allow</q> at the <q>City</q> from <q>Collection settings</q>).") . '</li>' . '<li>' . t("Create a <q>Page</q> content. Populate the <q>Title</q>, <q>City</q> and select a country.") . '</li>' . '<li>' . t("Create your views at http://www.example.com/?q=admin/build/views") . '</li>' . '<li>' . t("Inside your Edit view, add a filter then select <q>Location: Country</q> and \n <q>Location: City</q> from the list (click <q>Add</q> button).") . '</li>' . '<li>' . t("In <q>Defaults: Configure filter Location: Country</q>, scroll down at the \n bottom of the <q>Country</q> list and select <q>Smart IP: visitor's country code</q>. \n And select <q>Is</q> from <q>Operator:</q> radio selection.") . '</li>' . '<li>' . t("In <q>Defaults: Configure filter Location: City</q>, populate the <q>Value:</q> textfield \n with <q>smart_ip][location][city</q> Smart IP Views token and leave the <q>Is equal to</q> \n selected in <q>Operator:</q> dropdown menu.") . '<blockquote><p>' . t("This will filter contents with the country defined in Location CCK field (Country \n and City) in ralation to your visitor's country and city.") . '</p></blockquote></li>' . '<li>' . t("Add a field then select <q>Smart IP: Country</q> from the list (click <q>Add</q> button).") . '</li>' . '<li>' . t("In <q>Defaults: Configure field Smart IP: Country</q>, select <q>Country name</q> from the \n <q>Display style:</q> dropdown menu (click <q>Update</q> button). This will display the \n country of your visitor along with other CCK fields you've included in your views.") . '</li></ol>';
break;
}
}