<?php
/**
 * @file
 * Hooks and functions of module.
 */

/**
 * Implements hook_help().
 */
function mailjet_help($path, $arg) {
  switch ($path) {
    case 'admin/help#mailjet':
      return t('Send your emails by your Mailjet API.');
  }
}

/**
 * Implements hook_menu().
 */
function mailjet_menu() {
  $items['admin/config/system/mailjet'] = array(
    'title'            => 'Mailjet settings',
    'page callback'    => 'drupal_get_form',
    'page arguments'   => array('mailjet_admin_settings'),
    'access arguments' => array('administer mailjet module'),
    'description'      => 'Send your emails by your Mailjet API.',
    'file'             => 'mailjet.admin.inc',
  );
  return $items;
}

/**
 * Implements hook_permission().
 *
 * Defines a permission for managing the mailjet variables.
 */
function mailjet_permission() {
  return array(
    'administer mailjet module' => array(
      'title' => t('Administer Mailjet settings module'),
      'description' => t('Perform administration tasks for Mailjet settings module.'),
    ),
  );
}
