You are here

function opigno_og_add_content_block in Opigno 7.0

OG Add content block. Display links to create content for the current OG.

Parameters

object $group: The current group from og_context

Return value

array

1 call to opigno_og_add_content_block()
opigno_opigno_widget_view in ./opigno.module
Implements hook_opigno_widget_view()

File

includes/opigno.block.inc, line 47
Contains all block definitions

Code

function opigno_og_add_content_block($group) {
  $html = '';
  if (isset($group->gid)) {
    $tools = opigno_get_og_tools($group);
    $html = theme('opigno__add_content_to_og_list', array(
      'tools' => $tools,
    ));
  }
  return array(
    'subject' => t("Add content"),
    'content' => $html,
  );
}