feedback_simple.module in Feedback Simple 6
Same filename and directory in other branches
Module file.
File
feedback_simple.moduleView source
<?php
/**
* @file
* Module file.
*/
/**
* Implements hook_theme().
*/
function feedback_simple_theme($existing, $type, $theme, $path) {
return array(
'feedback_simple' => array(
'arguments' => array(
'link' => 'contact',
'align' => 'right',
'class' => array(
'feedback_simple',
),
'top' => '75%',
'alt' => t('feedback'),
'image' => base_path() . drupal_get_path('module', 'feedback_simple') . '/feedback_simple.gif',
'height' => '100',
'width' => '35',
'enabled' => true,
),
'template' => 'feedback_simple',
),
);
}
/**
* Implements hook_preprocess_feedback_simple().
*/
function feedback_simple_preprocess_feedback_simple(&$variables) {
// Hide the tab when on the $link page.
if ($_GET['q'] == $variables['link']) {
$variables['enabled'] = false;
}
// Allow Drupal to apply base_path and locale prefix outside of the
// theme registry cache.
$variables['link'] = url($variables['link']);
}
/**
* Implements hook_init().
*/
function feedback_simple_init() {
drupal_add_css(drupal_get_path('module', 'feedback_simple') . '/feedback_simple.css');
}
/**
* Implements hook_footer().
*/
function feedback_simple_footer($main = 0) {
return theme('feedback_simple');
}
Functions
Name | Description |
---|---|
feedback_simple_footer | Implements hook_footer(). |
feedback_simple_init | Implements hook_init(). |
feedback_simple_preprocess_feedback_simple | Implements hook_preprocess_feedback_simple(). |
feedback_simple_theme | Implements hook_theme(). |