function connector_block_view in Connector 7
Implements hook_block_view().
File
- ./
connector.module, line 170 - Connector module
Code
function connector_block_view($delta) {
global $user;
switch ($delta) {
case 'one_click_block':
if (!$user->uid) {
$state = array(
'build_info' => array(
'args' => array(),
),
);
$form = drupal_retrieve_form('connector_button_form', $state);
if ($form['#has_buttons']) {
return array(
'content' => drupal_get_form('connector_button_form'),
);
}
}
break;
}
}