o365-2.0.3/modules/o365_outlook_mail/o365_outlook_mail.module
modules/o365_outlook_mail/o365_outlook_mail.module
<?php
/**
* @file
* Implemented hooks for the o365_outlook_mail module.
*/
/**
* Implements hook_o365_auth_scopes().
*/
function o365_outlook_mail_o365_auth_scopes(array &$scopes) {
$scopes[] = 'Mail.Read';
$scopes[] = 'Mail.ReadBasic';
$scopes[] = 'Mail.ReadWrite';
}
/**
* Implements hook_theme().
*/
function o365_outlook_mail_theme($existing, $type, $theme, $path) {
return [
'o365_outlook_mail_list' => [
'variables' => [
'list' => NULL,
'readmore_class' => NULL,
],
'render element' => 'children',
],
'o365_outlook_mail_list_block' => [
'variables' => [
'list' => NULL,
'readmore_class' => NULL,
],
'render element' => 'children',
],
'o365_outlook_mail_item' => [
'variables' => [
'from' => NULL,
'subject' => NULL,
'receivedDateTime' => NULL,
'bodyPreview' => NULL,
'isRead' => NULL,
'webLink' => NULL,
],
'render element' => 'children',
],
];
}
