diff --git a/flag.api.php b/flag.api.php index 08b1749..15e6708 100644 --- a/flag.api.php +++ b/flag.api.php @@ -57,7 +57,39 @@ function hook_flag_type_info_alter(&$definitions) { * Define default flags. */ function hook_flag_default_flags() { - + $flags = array(); + $flags['bookmarks'] = array ( + 'content_type' => 'node', + 'title' => 'Bookmarks', + 'global' => '0', // 0 for false else 1 + 'types' => array ( + 0 => 'article', + 1 => 'blog', + ), + 'flag_short' => 'Bookmark this', + 'flag_long' => 'Add this post to your bookmarks', + 'flag_message' => 'This post has been added to your bookmarks', + 'unflag_short' => 'Unbookmark this', + 'unflag_long' => 'Remove this post from your bookmarks', + 'unflag_message' => 'This post has been removed from your bookmarks', + 'unflag_denied_text' => '', + 'link_type' => 'toggle', + 'roles' => array ( + 'flag' => array ( + 0 => 2, + ), + 'unflag' => array ( + 0 => 2, + ), + ), + 'show_on_page' => 1, + 'show_on_teaser' => 1, + 'show_on_form' => 1, + 'access_author' => '', + 'i18n' => 0, + 'api_version' => 2, + ); + return $flags; } /**