function userpoints_filter_form_ajax_callback in User Points 7
Same name and namespace in other branches
- 7.2 userpoints.module \userpoints_filter_form_ajax_callback()
Ajax callback for userpoints filter form.
1 string reference to 'userpoints_filter_form_ajax_callback'
- userpoints_filter_form in ./
userpoints.module - Provides a dropdown to filter by category.
File
- ./
userpoints.module, line 1367
Code
function userpoints_filter_form_ajax_callback($form, $form_state) {
$commands = array();
// First, replace the points listing.
$commands[] = ajax_command_replace('#userpoints_list_wrapper', drupal_render($form['list']));
// Bartik uses the page-title id, Seven has a class of that name. Replace
// the title for both of them and assume that most other themes use the
// same.
$commands[] = ajax_command_html('h1#page-title, h1.page-title', drupal_get_title());
return array(
'#type' => 'ajax',
'#commands' => $commands,
);
}