function drupagram_actions_set_status_action_validate in Drupagram 7
Verifies if Oauth module has been setup and also checks the Instagram authentication against the provided screen name.
File
- drupagram_actions/
drupagram_actions.module, line 83 - Exposes Drupal actions for sending Instagram messages.
Code
function drupagram_actions_set_status_action_validate($form, $form_state) {
if (!_drupagram_use_oauth()) {
form_set_error('username', t('Oauth has not been setup yet. Please go to !link and follow steps.', array(
'!link' => l(t('Instagram settings'), 'admin/settings/drupagram'),
)));
}
}