function _smart_ip_lookup_js in Smart IP 7
Same name and namespace in other branches
- 7.2 includes/smart_ip.admin.inc \_smart_ip_lookup_js()
AJAX callback to lookup an IP address in the database.
See also
1 string reference to '_smart_ip_lookup_js'
- smart_ip_admin_settings in includes/
smart_ip.admin.inc - Smart IP administration settings.
File
- includes/
smart_ip.admin.inc, line 363 - Admin interface callbacks/handlers to configure Smart IP.
Code
function _smart_ip_lookup_js($form, $form_state) {
$commands = array();
$commands[] = ajax_command_remove('#lookup-message');
$commands[] = ajax_command_after('#edit-smart-ip-lookup-button', '<div id="lookup-message" class="messages"></div>');
$commands[] = ajax_command_html('#lookup-message', $form_state['storage']['smart_ip_message']);
return array(
'#type' => 'ajax',
'#commands' => $commands,
);
}