Created
September 3, 2010 15:50
-
-
Save mrchrisadams/564079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (og_is_group_member(arg(1))) { | |
print "<div class='discussion_options'>"; | |
// what I want: | |
// http://company.comlocal/node/add/discussion?gids[]=23 | |
// this doesn't work because check url escapes the group node | |
print l(t('Start a new discussion'), 'node/add/discussion/gids[]=' . $node->nid , array('attributes' => array('class' => 'start-new-discussion button'), 'html' => TRUE)); | |
} | |
// what's the correct way to do this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment