mailjet.module 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * @file
  4. * Hooks and functions of module.
  5. */
  6. /**
  7. * Implements hook_help().
  8. */
  9. function mailjet_help($path, $arg) {
  10. switch ($path) {
  11. case 'admin/help#mailjet':
  12. return t('Send your emails by your Mailjet API.');
  13. }
  14. }
  15. /**
  16. * Implements hook_menu().
  17. */
  18. function mailjet_menu() {
  19. $items['admin/config/system/mailjet'] = array(
  20. 'title' => 'Mailjet settings',
  21. 'page callback' => 'drupal_get_form',
  22. 'page arguments' => array('mailjet_admin_settings'),
  23. 'access arguments' => array('administer mailjet module'),
  24. 'description' => 'Send your emails by your Mailjet API.',
  25. 'file' => 'mailjet.admin.inc',
  26. );
  27. return $items;
  28. }
  29. /**
  30. * Implements hook_permission().
  31. *
  32. * Defines a permission for managing the mailjet variables.
  33. */
  34. function mailjet_permission() {
  35. return array(
  36. 'administer mailjet module' => array(
  37. 'title' => t('Administer Mailjet settings module'),
  38. 'description' => t('Perform administration tasks for Mailjet settings module.'),
  39. ),
  40. );
  41. }