You are here

function user_relationships_ui_theme in User Relationships 6

Same name and namespace in other branches
  1. 7 user_relationships_ui/user_relationships_ui.module \user_relationships_ui_theme()

Implementation of hook_theme().

File

user_relationships_ui/user_relationships_ui.module, line 758
UI components of user_relationships @author Jeff Smick (creator) @author Alex Karshakevich (maintainer) http://drupal.org/user/183217 @author Darren Ferguson (contributor) http://drupal.org/user/70179

Code

function user_relationships_ui_theme() {
  $theme_funcs = array(
    'user_relationships_request_relationship_link' => array(
      'arguments' => array(
        'relate_to' => NULL,
      ),
    ),
    'user_relationships_request_relationship_direct_link' => array(
      'arguments' => array(
        'relate_to' => NULL,
        'relationship_type' => NULL,
      ),
    ),
    'user_relationships_remove_link' => array(
      'arguments' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_pending_request_approve_link' => array(
      'arguments' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_pending_request_disapprove_link' => array(
      'arguments' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_pending_request_cancel_link' => array(
      'arguments' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_approval_status' => array(
      'arguments' => array(
        'approved' => NULL,
      ),
    ),
    'user_relationships_user_link' => array(
      'arguments' => array(
        'uid' => NULL,
      ),
    ),
  );
  foreach ($theme_funcs as $key => $val) {
    $theme_funcs[$key]['file'] = 'user_relationships_ui.theme.inc';
  }
  $theme_templates = array(
    'user_relationships' => array(
      'arguments' => array(
        'account' => NULL,
        'rtid' => NULL,
      ),
      'path' => drupal_get_path('module', 'user_relationships_ui') . '/templates',
      'template' => 'user_relationships',
    ),
    'user_relationships_pending_requests' => array(
      'arguments' => array(
        'account' => NULL,
      ),
      'path' => drupal_get_path('module', 'user_relationships_ui') . '/templates',
      'template' => 'user_relationships_pending_requests',
    ),
  );
  return array_merge($theme_funcs, $theme_templates);
}