You are here

function favorites_add_favorite_js in Favorites 7.2

Same name and namespace in other branches
  1. 6 favorites.module \favorites_add_favorite_js()
  2. 7 favorites.module \favorites_add_favorite_js()

AHAH callback for add favorites form.

See also

favorites_add_favorite_form()

1 string reference to 'favorites_add_favorite_js'
favorites_menu in ./favorites.module
Implements hook_menu().

File

./favorites.module, line 387
The favorites module allows users to bookmark any path within a site.

Code

function favorites_add_favorite_js() {
  favorites_add_favorite($_POST);
  drupal_json_output(array(
    'list' => favorites_list(),
  ));
}