DrupalBin
Submit Code
About
Recent Posts
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
2 hours 15 min
ago
Code
3 hours 10 min
ago
Code
7 hours 9 min
ago
oopsie in modules/taxonomy/taxonomy.test
9 hours 7 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for %crmapi_section doesn't get passed to form function
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
function crmapi_menu() { $items = array(); $items['crmapi/%crmapi_section'] = array( 'title callback' => 'crmapi_title', 'title arguments' => array(1), 'page callback' => 'drupal_get_form', 'page arguments' => array('crmapi_contact_form', 1), 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); return $items; } function crmapi_section_load($section) { return $section; } function crmngp_ui_contact_form(&$form_state, $section = NULL, $contact_id = NULL) { print_r(func_get_args()); exit; ... }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.