You are here

function node_registration_theme in Node registration 7

Implements hook_theme().

File

./node_registration.module, line 1027

Code

function node_registration_theme() {
  return array(
    // Admin: the registration types overview.
    'node_registration_types_form' => array(
      'render element' => 'form',
    ),
    // The registration entity.
    'node_registration' => array(
      'variables' => array(
        'node' => NULL,
        'registration' => NULL,
        'content' => NULL,
      ),
      'template' => 'templates/node-registration',
    ),
    // Block: error messages.
    'node_registration_block_message_access' => array(
      'variables' => array(
        'user' => NULL,
        'node' => NULL,
        'registration' => NULL,
      ),
      'template' => 'templates/node-registration-message-access',
    ),
    'node_registration_block_message_date' => array(
      'variables' => array(
        'user' => NULL,
        'node' => NULL,
        'registration' => NULL,
      ),
      'template' => 'templates/node-registration-message-date',
    ),
    'node_registration_block_message_capacity' => array(
      'variables' => array(
        'user' => NULL,
        'node' => NULL,
        'registration' => NULL,
      ),
      'template' => 'templates/node-registration-message-capacity',
    ),
    'node_registration_block_message_registered' => array(
      'variables' => array(
        'user' => NULL,
        'node' => NULL,
        'registration' => NULL,
      ),
      'template' => 'templates/node-registration-message-registered',
    ),
    // Block: link.
    'node_registration_link' => array(
      'variables' => array(
        'node' => NULL,
        'content' => NULL,
      ),
      'template' => 'templates/node-registration-link',
    ),
    // Block: registration form.
    'node_registration_form_block' => array(
      'variables' => array(
        'form' => NULL,
        'node' => NULL,
        'registration' => NULL,
      ),
      'template' => 'templates/node-registration-form-block',
    ),
    // Block: cancel form.
    'node_registration_cancel_block' => array(
      'variables' => array(
        'form' => NULL,
        'node' => NULL,
        'registration' => NULL,
      ),
      'template' => 'templates/node-registration-cancel-block',
    ),
  );
}