Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nomensa_amp
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
nomensa_amp
Commits
f41a6613
Commit
f41a6613
authored
11 years ago
by
Oliver Davies
Browse files
Options
Downloads
Patches
Plain Diff
Added a drupal_set_message() when the module is installed
parent
a10de592
No related branches found
Branches containing commit
Tags
7.x-1.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nomensa_amp.install
+14
-1
14 additions, 1 deletion
nomensa_amp.install
nomensa_amp.module
+3
-1
3 additions, 1 deletion
nomensa_amp.module
with
17 additions
and
2 deletions
nomensa_amp.install
+
14
−
1
View file @
f41a6613
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
nomensa_amp.module
+
3
−
1
View file @
f41a6613
...
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment