You are here

function panels_user_from_node_panels_relationships in Panels 5.2

Same name and namespace in other branches
  1. 6.2 relationships/user_from_node.inc \panels_user_from_node_panels_relationships()

Plugin to provide an relationship handler for node from user

File

relationships/user_from_node.inc, line 7

Code

function panels_user_from_node_panels_relationships() {
  $args['user_from_node'] = array(
    'title' => t("User from node"),
    'keyword' => 'user',
    'description' => t('Adds a user from node author context'),
    'required context' => new panels_required_context(t('Node'), 'node'),
    'context' => 'panels_user_from_node_context',
  );
  return $args;
}