You are here

function sarnia_entity_properties_form in Sarnia 7

1 string reference to 'sarnia_entity_properties_form'
sarnia_menu in ./sarnia.module
Implements hook_menu().

File

./sarnia.entities.inc, line 278

Code

function sarnia_entity_properties_form($form, &$form_state, $server) {
  $render = array();
  $render['refresh_link'] = array(
    '#type' => 'container',
  );
  $render['refresh_link']['refresh_link'] = array(
    '#type' => 'link',
    '#title' => t('Refresh server fields'),
    '#href' => 'admin/config/search/search_api/server/' . $server->machine_name . '/sarnia/cache',
  );
  $render['property_table'] = sarnia_entity_properties_table($server);
  return $render;
}