2

I want to replicate the Drupal "Create Poll,Event" links etc of the Drupal groups. How can I accomplish that with Organic groups? Thanks

1
  • Do you mean in the sidebar of groups.drupal.org?
    – Grayside
    Commented Mar 26, 2012 at 19:34

2 Answers 2

-1

You can do this using a custom block with format as php option. You need to use l function to generate links.

$links = "";
$linkList .= l(t('Create Poll'), 'node/add/poll', array('html' => TRUE, 'query' => array('gid[]' => arg(1))));
$linkList .= l(t('Create Event'), 'node/add/event', array('html' => TRUE, 'query' => array('gid[]' => arg(1))));
print $links;
0

In case you use panels, Organic Groups module comes with a content create panel pane that allows to select the content types to include in such a links list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.