View source
<?php
define('CLOSEBLOCK_ACTIVE', 0);
define('CLOSEBLOCK_CUSTOM', 0);
define('CLOSEBLOCK_TYPE', 2);
define('CLOSEBLOCK_SPEED', 500);
define('CLOSEBLOCK_SAVE', 1);
define('CLOSEBLOCK_COUNT', 1);
define('CLOSEBLOCK_FREQUENCY', '');
require_once 'includes/closeblock.api.inc';
require_once 'includes/closeblock.form.inc';
require_once 'model/closeblock.db.inc';
function closeblock_perm() {
return array(
'closeblock',
);
}
function closeblock_init() {
closeblock_initialization();
}
function closeblock_menu() {
$items = array();
$items['closeblock/%/%'] = array(
'title' => 'Closeblock',
'page callback' => 'closeblock_ajax_callback',
'page arguments' => array(
1,
2,
),
'access arguments' => array(
'closeblock',
),
);
return $items;
}
function closeblock_theme($existing, $type, $theme, $path) {
return array(
'closeblock_block_id' => array(
'path' => $path . '/theme',
'file' => 'closeblock.theme.inc',
),
);
}
function closeblock_block_view_alter(&$data, $block) {
closeblock_ajax_settings($data, $block);
}
function closeblock_preprocess_page(&$vars) {
closeblock_blocks_process($vars);
}
function closeblock_form_system_theme_settings_alter(&$form, $form_state) {
closeblock_system_theme_settings($form, $form_state);
}
function closeblock_form_block_admin_configure_alter(&$form, $form_state) {
closeblock_block_admin_configure($form, $form_state);
}
function closeblock_form_block_add_block_form_alter(&$form, $form_state) {
closeblock_block_admin_configure($form, $form_state);
}