Custom Site functions

Categories

Component ID

1783576

Component name

Custom Site functions

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

custom.info----------------------

; $Id$
name = Custom Site functions
description = Custom functions for this site.
core = 6.x

custom.module-------------------



function custom_menu()
{
	$items = array();

	$items['customquotes/%'] = array(
	'title' => 'Custom Quote', 
	'page callback' => '_custom_quote', 
	'access arguments' => array('access content'), 
	'type' => MENU_CALLBACK,
	);

	return $items;
}

function _custom_quote()
{
	$data = arg(1);
	variable_set('custom_mail_data',$data) ;
}

function custom_form_alter(&$form, $form_state, $form_id){
  if ($form_id == 'comment_form') {
      $form['comment_filter']['comment']['#title'] = "Review";
      unset($form['homepage']);
      //print_r($form);
      
      
  }
  return $form;
}