Calling external APIs in developer portal

Hi Everyone!

I want to call external APIs in developer portal code,but first i change the form title to show any effect in the form for this i write the following php code in template.php in my sub theme but there is no any effect in my form.after that i will be able to work on API calling OR is there any out of the box solution available kindly suggest.

<?php /* * Implementation of hook_form_alter() */ 


function custom_example_form_alter(&$form, &$form_state, $form_id){


 // target a single form 
if($form_id == "webform_client_form_61")


{ 
$form['title']['#title'] = t('New Form Title'); 
} 
}
0 1 503
1 REPLY 1

I'm not really clear on what you're trying to do, or what you're asking.

Can you elaborate on what you want to do? What is the external API you are calling, and why are you calling it? (If you don't wish to disclose that, just characterize its purpose).

Under what conditions will the external API be called? Every time a page loads? Only when a new developer registers? Explain.

Or, maybe you want to allow developers who visit the devportal to "subscribe" to this external API?

The code you provided isn't helpful, without a little more context.