Changeset 2695 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 02/12/2010 12:31:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r2626 r2695 255 255 } 256 256 257 258 function bp_group_id( $deprecated = true, $deprecated2 = false ) { 259 global $groups_template; 260 261 if ( !$deprecated ) 262 return bp_get_group_id(); 263 else 264 echo bp_get_group_id(); 257 function bp_group_id() { 258 echo bp_get_group_id(); 265 259 } 266 260 function bp_get_group_id( $group = false ) { … … 273 267 } 274 268 275 function bp_group_name( $deprecated = true, $deprecated2 = false ) { 276 global $groups_template; 277 278 if ( !$deprecated ) 279 return bp_get_group_name(); 280 else 281 echo bp_get_group_name(); 269 function bp_group_name() { 270 echo bp_get_group_name(); 282 271 } 283 272 function bp_get_group_name( $group = false ) { … … 363 352 } 364 353 365 function bp_group_last_active( $deprecated = true, $deprecated2 = false ) { 366 if ( !$deprecated ) 367 return bp_get_group_last_active(); 368 else 369 echo bp_get_group_last_active(); 354 function bp_group_last_active() { 355 echo bp_get_group_last_active(); 370 356 } 371 357 function bp_get_group_last_active( $group = false ) { … … 387 373 } 388 374 389 function bp_group_permalink( $deprecated = false, $deprecated2 = true ) { 390 if ( !$deprecated2 ) 391 return bp_get_group_permalink(); 392 else 393 echo bp_get_group_permalink(); 375 function bp_group_permalink() { 376 echo bp_get_group_permalink(); 394 377 } 395 378 function bp_get_group_permalink( $group = false ) { … … 402 385 } 403 386 404 function bp_group_admin_permalink( $deprecated = true, $deprecated2 = false ) { 405 if ( !$deprecated ) 406 return bp_get_group_admin_permalink(); 407 else 408 echo bp_get_group_admin_permalink(); 387 function bp_group_admin_permalink() { 388 echo bp_get_group_admin_permalink(); 409 389 } 410 390 function bp_get_group_admin_permalink( $group = false ) { … … 429 409 } 430 410 431 function bp_group_description( $deprecated = false, $deprecated2 = true ) { 432 if ( !$deprecated2 ) 433 return bp_get_group_description(); 434 else 435 echo bp_get_group_description(); 411 function bp_group_description() { 412 echo bp_get_group_description(); 436 413 } 437 414 function bp_get_group_description( $group = false ) { … … 444 421 } 445 422 446 function bp_group_description_editable( $deprecated = false) {423 function bp_group_description_editable() { 447 424 echo bp_get_group_description_editable(); 448 425 } … … 456 433 } 457 434 458 function bp_group_description_excerpt( $deprecated = false) {435 function bp_group_description_excerpt() { 459 436 echo bp_get_group_description_excerpt(); 460 437 } … … 469 446 470 447 471 function bp_group_public_status( $deprecated = false) {448 function bp_group_public_status() { 472 449 echo bp_get_group_public_status(); 473 450 } … … 485 462 } 486 463 487 function bp_group_is_public( $deprecated = false) {464 function bp_group_is_public() { 488 465 echo bp_get_group_is_public(); 489 466 } … … 497 474 } 498 475 499 function bp_group_date_created( $deprecated = false) {476 function bp_group_date_created() { 500 477 echo bp_get_group_date_created(); 501 478 } … … 521 498 } 522 499 523 function bp_group_list_admins( $ deprecated = true, $group = false ) {500 function bp_group_list_admins( $group = false ) { 524 501 global $groups_template; 525 502 … … 541 518 } 542 519 543 function bp_group_list_mods( $ deprecated = true, $group = false ) {520 function bp_group_list_mods( $group = false ) { 544 521 global $groups_template; 545 522 … … 561 538 } 562 539 563 function bp_group_all_members_permalink( $deprecated = true, $deprecated2 = false ) { 564 global $groups_template, $bp; 565 566 if ( !$group ) 567 $group =& $groups_template->group; 568 569 if ( !$deprecated ) 570 return bp_get_group_all_members_permalink(); 571 else 572 echo bp_get_group_all_members_permalink(); 540 function bp_group_all_members_permalink() { 541 echo bp_get_group_all_members_permalink(); 573 542 } 574 543 function bp_get_group_all_members_permalink( $group = false ) { … … 636 605 } 637 606 638 function bp_group_total_members( $deprecated = true, $deprecated2 = false ) { 639 if ( !$deprecated ) 640 return bp_get_group_total_members(); 641 else 642 echo bp_get_group_total_members(); 643 } 644 function bp_get_group_total_members( $echo = true, $group = false ) { 607 function bp_group_total_members() { 608 echo bp_get_group_total_members(); 609 } 610 function bp_get_group_total_members( $group = false ) { 645 611 global $groups_template; 646 612 … … 663 629 } 664 630 665 function bp_group_forum_permalink( $deprecated = false) {631 function bp_group_forum_permalink() { 666 632 echo bp_get_group_forum_permalink(); 667 633 } … … 902 868 } 903 869 904 function bp_group_member_demote_link( $user_id = false , $deprecated = false) {870 function bp_group_member_demote_link( $user_id = false ) { 905 871 global $members_template; 906 872 … … 922 888 } 923 889 924 function bp_group_member_ban_link( $user_id = false , $deprecated = false) {890 function bp_group_member_ban_link( $user_id = false ) { 925 891 global $members_template; 926 892 … … 939 905 } 940 906 941 function bp_group_member_unban_link( $user_id = false , $deprecated = false) {907 function bp_group_member_unban_link( $user_id = false ) { 942 908 global $members_template; 943 909 … … 996 962 } 997 963 998 function bp_group_form_action( $page , $deprecated = false) {964 function bp_group_form_action( $page ) { 999 965 echo bp_get_group_form_action( $page ); 1000 966 } … … 1008 974 } 1009 975 1010 function bp_group_admin_form_action( $page = false , $deprecated = false) {976 function bp_group_admin_form_action( $page = false ) { 1011 977 echo bp_get_group_admin_form_action( $page ); 1012 978 } … … 1050 1016 } 1051 1017 1052 function bp_group_accept_invite_link( $deprecated = false) {1018 function bp_group_accept_invite_link() { 1053 1019 echo bp_get_group_accept_invite_link(); 1054 1020 } … … 1062 1028 } 1063 1029 1064 function bp_group_reject_invite_link( $deprecated = false) {1030 function bp_group_reject_invite_link() { 1065 1031 echo bp_get_group_reject_invite_link(); 1066 1032 } … … 1074 1040 } 1075 1041 1076 function bp_group_leave_confirm_link( $deprecated = false) {1042 function bp_group_leave_confirm_link() { 1077 1043 echo bp_get_group_leave_confirm_link(); 1078 1044 } … … 1086 1052 } 1087 1053 1088 function bp_group_leave_reject_link( $deprecated = false) {1054 function bp_group_leave_reject_link() { 1089 1055 echo bp_get_group_leave_reject_link(); 1090 1056 } … … 1098 1064 } 1099 1065 1100 function bp_group_send_invite_form_action( $deprecated = false) {1066 function bp_group_send_invite_form_action() { 1101 1067 echo bp_get_group_send_invite_form_action(); 1102 1068 }
Note: See TracChangeset
for help on using the changeset viewer.