You are here

function notifications_manage_destination_extra in Notifications 6.4

Manage destination extra options for administrators

1 call to notifications_manage_destination_extra()
notifications_manage_destination_form in ./notifications.manage.inc
Manage destination form. Edit subscriptions for a destination

File

./notifications.manage.inc, line 205
Common functions for bulk management of subscriptions

Code

function notifications_manage_destination_extra($destination) {
  if (user_access('administer notifications') && function_exists('notifications_anonymous_manage_links')) {
    foreach (_notifications_anonymous_manage_links('destination', $destination) as $link) {
      $url = url($link['href'], $link['options']);
      $rows[] = array(
        $link['title'],
        l($url, $url),
      );
    }
    $form['links'] = array(
      '#type' => 'item',
      '#title' => t('Anonymous links for this destination'),
      '#value' => theme('table', array(), $rows),
    );
    return $form;
  }
  else {
    return array();
  }
}