You are here

function template_preprocess_node_registration_link in Node registration 7

Default preprocess for theme node_registration_link.

File

./node_registration.module, line 1146

Code

function template_preprocess_node_registration_link(&$variables) {
  $node = $variables['node'];
  $variables['content']['link'] = array(
    '#type' => 'link',
    '#title' => t('To registration form'),
    '#href' => 'node/' . $node->nid . '/register',
    '#attributes' => array(
      'class' => array(
        'block-node-register-link',
      ),
    ),
    '#prefix' => '<p class="block-node-register-link-outer">',
    '#suffix' => '</p>',
  );
}