You are here

function user_relationships_ui_theme in User Relationships 7

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

Implements hook_theme().

File

user_relationships_ui/user_relationships_ui.module, line 578
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(
      'variables' => array(
        'relate_to' => NULL,
      ),
    ),
    'user_relationships_request_relationship_direct_link' => array(
      'variables' => array(
        'relate_to' => NULL,
        'relationship_type' => NULL,
      ),
    ),
    'user_relationships_remove_link' => array(
      'variables' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_pending_request_approve_link' => array(
      'variables' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_pending_request_disapprove_link' => array(
      'variables' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_pending_request_cancel_link' => array(
      'variables' => array(
        'uid' => NULL,
        'rid' => NULL,
      ),
    ),
    'user_relationships_approval_status' => array(
      'variables' => array(
        'approved' => NULL,
      ),
    ),
    'user_relationships_user_link' => array(
      'variables' => array(
        'uid' => NULL,
      ),
    ),
  );
  foreach ($theme_funcs as $key => $val) {
    $theme_funcs[$key]['file'] = 'user_relationships_ui.theme.inc';
  }
  $theme_templates = array(
    'user_relationships' => array(
      'variables' => array(
        'account' => NULL,
        'rtid' => NULL,
      ),
      'path' => drupal_get_path('module', 'user_relationships_ui') . '/templates',
      'template' => 'user_relationships',
    ),
    'user_relationships_pending_requests' => array(
      'variables' => array(
        'account' => NULL,
      ),
      'path' => drupal_get_path('module', 'user_relationships_ui') . '/templates',
      'template' => 'user_relationships_pending_requests',
    ),
  );
  return array_merge($theme_funcs, $theme_templates);
}