Skip to content
Snippets Groups Projects
Commit f41a6613 authored by Oliver Davies's avatar Oliver Davies
Browse files

Added a drupal_set_message() when the module is installed

parent a10de592
No related branches found
Tags 7.x-1.1
No related merge requests found
......@@ -6,10 +6,23 @@
* Player module.
*/
/**
* Implements hook_install().
*/
function nomensa_amp_install() {
drupal_set_message(t('The Nomensa Accessible Media Player module has been enabled. !link to configure it.', array(
'!link' => l(t('Go to the settings page'), NOMENSA_AMP_SETTINGS_FORM, array(
'attributes' => array(
'title' => t('Configure the Nomensa Accessible Media Player module'),
),
)),
)));
}
/**
* Implements hook_uninstall().
*/
function nomensa_amp_uninstall() {
// Delete the settings variable.
variable_del('nomensa_amp_settings');
}
\ No newline at end of file
}
......@@ -5,11 +5,13 @@
* Embeds the Nomensa Accessibile Media Player within Drupal.
*/
define('NOMENSA_AMP_SETTINGS_FORM', 'admin/config/media/nomensa-amp');
/**
* Implements hook_menu().
*/
function nomensa_amp_menu() {
$items['admin/config/media/nomensa-amp'] = array(
$items[NOMENSA_AMP_SETTINGS_FORM] = array(
'title' => 'Nomensa Accessible Media Player',
'description' => 'Administration functions for the Nomensa Accessible Media Player module',
'page callback' => 'drupal_get_form',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment