*/
/**
-* Implementation of hook_schema().
+* Implements hook_schema().
*/
function mkdru_schema() {
$schema['mkdru'] = array(
}
/**
-* Implementation of hook_install().
+* Implements hook_install().
*/
function mkdru_install() {
// Disable comments by default
}
/**
-* Implementation of hook_uninstall().
+* Implements hook_uninstall().
*/
function mkdru_uninstall() {
// Drop table.
// Module metainfo
/**
-* Implementation of hook_node_info()
+* Implements hook_node_info()
*/
function mkdru_node_info() {
return array(
}
/**
-* Implementation of hook_perm()
+* Implements hook_perm()
*/
function mkdru_perm() {
return array('create metasearch interface', 'edit any metasearch interface', 'edit own metasearch interface');
}
/**
-* Implementation of hook_access()
+* Implements hook_access()
*/
function mkdru_access($op, $node, $account) {
}
/**
-* Implementation of hook_menu()
+* Implements hook_menu()
*/
function mkdru_menu() {
$items['admin/settings/mkdru'] = array(
}
/**
-* Implementation of hook_init()
+* Implements hook_init()
*/
function mkdru_init() {
// Applies our module specific CSS to all pages. This works best because
// Node config
/**
-* Implementation of hook_form()
+* Implements hook_form()
*/
function mkdru_form(&$node, $form_state) {
$type = node_get_types('type', $node);
/**
-* Implementation of hook_validate()
+* Implements hook_validate()
*/
function mkdru_validate($node) {
if (!is_numeric($node->source_max)) {
}
/**
-* Implementation of hook_insert().
+* Implements hook_insert().
*/
function mkdru_insert($node) {
drupal_write_record('mkdru', $node);
}
/**
-* Implementation of hook_update().
+* Implements hook_update().
*/
function mkdru_update($node) {
if ($node->revision) {
}
/**
- * Implementation of hook_nodeapi().
+ * Implements hook_nodeapi().
*
* When a node revision is deleted, we need to remove the corresponding record
* from our table. The only way to handle revision deletion is by implementing
}
/**
- * Implementation of hook_delete().
+ * Implements hook_delete().
*/
function mkdru_delete($node) {
// Deleting by nid covers all revisions.
// Node rendering
/**
-* Implementation of hook_load()
+* Implements hook_load()
*/
function mkdru_load($node) {
return array('mkdru' => db_fetch_object(db_query(
}
/**
-* Implementation of hook_theme().
+* Implements hook_theme().
*/
function mkdru_theme() {
return array(
}
/**
-* Implementation of hook_view()
+* Implements hook_view()
*/
function mkdru_view($node, $teaser = FALSE, $page = FALSE) {
$node->content['mkdru_js'] = array(
}
/**
-* Implementation of hook_block()
+* Implements hook_block()
*/
function mkdru_block($op='list', $delta='sources', $edit=array()) {
switch ($op) {