You are here

function mostpopular_blocks_admin_form_add_remote_block in Drupal Most Popular 7

1 string reference to 'mostpopular_blocks_admin_form_add_remote_block'
mostpopular_blocks_admin_form in ./mostpopular.blocks.inc
@file Provides an admin GUI for configuring most popular blocks.

File

./mostpopular.blocks.inc, line 155
Provides an admin GUI for configuring most popular blocks.

Code

function mostpopular_blocks_admin_form_add_remote_block($form, &$form_state) {
  $form_state['blocks'][] = (object) array(
    'name' => 'remote_' . (count($form_state['blocks']) + 1),
    'title' => t('Most Popular'),
    'remote_bid' => 1,
    'count' => 5,
    'data' => array(),
  );
  $form_state['rebuild'] = TRUE;
}