views.install

  1. cis7 sites/all/modules/ulmus/views/views.install
  2. cle7 sites/all/modules/ulmus/views/views.install
  3. ecd7 sites/all/modules/ulmus/views/views.install
  4. elmsmedia7 sites/all/modules/ulmus/views/views.install
  5. harmony7 sites/all/modules/ulmus/views/views.install
  6. icor7 sites/all/modules/ulmus/views/views.install
  7. meedjum_blog7 sites/all/modules/ulmus/views/views.install
  8. mooc7 sites/all/modules/ulmus/views/views.install

Contains install and update functions for Views.

Functions

Namesort descending Description
views_install Implements hook_install().
views_schema Implements hook_schema().
views_schema_6000 Views 2's initial schema. Called directly by views_update_6000() for updates from Drupal 5.
views_schema_6003 Add missing unique key.
views_schema_6004 Enlarge the views_object_cache.data column to prevent truncation and JS errors.
views_schema_6005 Enlarge the base_table column
views_schema_6006 Add the cache_views_data table to support standard caching.
views_schema_6008 Add the primary key to views_display table.
views_schema_6009 Enlarge the views_display.display_options field to accomodate a larger set of configurations (e. g. fields, filters, etc.) on a display.
views_schema_6010 Remove the view_php field
views_schema_6011 Remove views_object_cache table and move the data to ctools_object_cache.
views_schema_6013 Add a human readable name.
views_schema_6014
views_schema_7300
views_schema_7301
views_update_6000 Update a site to Drupal 6! Contains a bit of special code to detect if you've been running a beta version or something.
views_update_6001 Remove '$' symbol in special blocks, as it is invalid for theming.
views_update_6003
views_update_6004
views_update_6005
views_update_6006
views_update_6007 Add aggregate function to PostgreSQL so GROUP BY can be used to force only one result to be returned for each item.
views_update_6008 Add the primary key to the views_display table.
views_update_6009
views_update_6010 Remove the view_php and is_cacheable field
views_update_6011 Remove views_object_cache table and move the data to ctools_object_cache.
views_update_6012 Correct the cache setting for exposed filter blocks.
views_update_6013
views_update_6014 Add a drupal core version field.
views_update_7000 Rename some system variables.
views_update_7001 Fix missing items from Views administrative breadcrumb
views_update_7300 Make sure the human_name field is added to the views_view table.
views_update_7301 Enlarge the name column

File

sites/all/modules/ulmus/views/views.install
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains install and update functions for Views.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function views_install() {
  10. if (Database::getConnection()->databaseType() == 'pgsql') {
  11. db_query('CREATE OR REPLACE FUNCTION first(anyelement, anyelement) RETURNS anyelement AS \'SELECT COALESCE($1, $2);\' LANGUAGE \'sql\';');
  12. db_query("DROP AGGREGATE IF EXISTS first(anyelement)");
  13. db_query("CREATE AGGREGATE first(sfunc = first, basetype = anyelement, stype = anyelement);");
  14. }
  15. db_query("UPDATE {system} SET weight = 10 WHERE name = 'views'");
  16. }
  17. /**
  18. * Implements hook_schema().
  19. *
  20. * Generate the current version of the database schema from
  21. * the sequence of schema update functions. Uses a similar
  22. * method to install.inc's drupal_get_schema_versions() to
  23. * establish the update sequence.
  24. *
  25. * To change the schema, add a new views_schema_N()
  26. * function to match the associated views_update_N()
  27. *
  28. * @param $caller_function
  29. * The name of the function that called us.
  30. * Used internally, if requesting a specific schema version.
  31. */
  32. function views_schema($caller_function = FALSE) {
  33. static $get_current;
  34. static $schemas = array();
  35. // If called with no arguments, get the latest version of the schema.
  36. if (!isset($get_current)) {
  37. $get_current = $caller_function ? FALSE : TRUE;
  38. }
  39. // Generate a sorted list of available schema update functions.
  40. if ($get_current || empty($schemas)) {
  41. $get_current = FALSE;
  42. $functions = get_defined_functions();
  43. foreach ($functions['user'] as $function) {
  44. if (strpos($function, 'views_schema_') === 0) {
  45. $version = substr($function, strlen('views_schema_'));
  46. if (is_numeric($version)) {
  47. $schemas[] = $version;
  48. }
  49. }
  50. }
  51. if ($schemas) {
  52. sort($schemas, SORT_NUMERIC);
  53. // If a specific version was requested, drop any later
  54. // updates from the sequence.
  55. if ($caller_function) {
  56. do {
  57. $schema = array_pop($schemas);
  58. } while ($schemas && $caller_function != 'views_schema_'. $schema);
  59. }
  60. }
  61. }
  62. // Call views_schema_<n>, for the highest available <n>.
  63. if ($schema = array_pop($schemas)) {
  64. $function = 'views_schema_'. $schema;
  65. return $function();
  66. }
  67. return array();
  68. }
  69. /**
  70. * Views 2's initial schema.
  71. * Called directly by views_update_6000() for updates from Drupal 5.
  72. *
  73. * Important: Do not edit this schema!
  74. *
  75. * Updates to the views schema must be provided as views_schema_6xxx() functions,
  76. * which views_schema() automatically sees and applies. See below for examples.
  77. *
  78. * Please do document updates with comments in this function, however.
  79. */
  80. function views_schema_6000() {
  81. $schema['views_view'] = array(
  82. 'description' => 'Stores the general data for a view.',
  83. 'export' => array(
  84. 'identifier' => 'view',
  85. 'bulk export' => TRUE,
  86. 'primary key' => 'vid',
  87. 'default hook' => 'views_default_views',
  88. 'admin_title' => 'human_name',
  89. 'admin_description' => 'description',
  90. 'api' => array(
  91. 'owner' => 'views',
  92. 'api' => 'views_default',
  93. 'minimum_version' => '2',
  94. 'current_version' => '3.0',
  95. ),
  96. 'object' => 'view',
  97. // the callback to load the displays
  98. 'subrecords callback' => 'views_load_display_records',
  99. // the variable that holds enabled/disabled status
  100. 'status' => 'views_defaults',
  101. // CRUD callbacks
  102. 'create callback' => 'views_new_view',
  103. 'save callback' => 'views_save_view',
  104. 'delete callback' => 'views_delete_view',
  105. 'export callback' => 'views_export_view',
  106. 'status callback' => 'views_export_status',
  107. 'cache defaults' => TRUE,
  108. 'default cache bin' => 'cache_views',
  109. ),
  110. 'fields' => array(
  111. 'vid' => array(
  112. 'type' => 'serial',
  113. 'unsigned' => TRUE,
  114. 'not null' => TRUE,
  115. 'description' => 'The view ID of the field, defined by the database.',
  116. 'no export' => TRUE,
  117. ),
  118. 'name' => array(
  119. 'type' => 'varchar',
  120. 'length' => '32',
  121. 'default' => '',
  122. 'not null' => TRUE,
  123. 'description' => 'The unique name of the view. This is the primary field views are loaded from, and is used so that views may be internal and not necessarily in the database. May only be alphanumeric characters plus underscores.',
  124. ),
  125. 'description' => array(
  126. 'type' => 'varchar',
  127. 'length' => '255',
  128. 'default' => '',
  129. 'description' => 'A description of the view for the admin interface.',
  130. ),
  131. 'tag' => array(
  132. 'type' => 'varchar',
  133. 'length' => '255',
  134. 'default' => '',
  135. 'description' => 'A tag used to group/sort views in the admin interface',
  136. ),
  137. 'view_php' => array(
  138. 'type' => 'blob',
  139. 'description' => 'A chunk of PHP code that can be used to provide modifications to the view prior to building.',
  140. ),
  141. 'base_table' => array(
  142. 'type' => 'varchar',
  143. 'length' => '32', // Updated to '64' in views_schema_6005()
  144. 'default' => '',
  145. 'not null' => TRUE,
  146. 'description' => 'What table this view is based on, such as node, user, comment, or term.',
  147. ),
  148. 'is_cacheable' => array(
  149. 'type' => 'int',
  150. 'default' => 0,
  151. 'size' => 'tiny',
  152. 'description' => 'A boolean to indicate whether or not this view may have its query cached.',
  153. ),
  154. ),
  155. 'primary key' => array('vid'),
  156. 'unique key' => array('name' => array('name')), // Updated to 'unique keys' in views_schema_6003()
  157. );
  158. $schema['views_display'] = array(
  159. 'description' => 'Stores information about each display attached to a view.',
  160. 'fields' => array(
  161. 'vid' => array(
  162. 'type' => 'int',
  163. 'unsigned' => TRUE,
  164. 'not null' => TRUE,
  165. 'default' => 0,
  166. 'description' => 'The view this display is attached to.',
  167. 'no export' => TRUE,
  168. ),
  169. 'id' => array(
  170. 'type' => 'varchar',
  171. 'length' => '64',
  172. 'default' => '',
  173. 'not null' => TRUE,
  174. 'description' => 'An identifier for this display; usually generated from the display_plugin, so should be something like page or page_1 or block_2, etc.',
  175. ),
  176. 'display_title' => array(
  177. 'type' => 'varchar',
  178. 'length' => '64',
  179. 'default' => '',
  180. 'not null' => TRUE,
  181. 'description' => 'The title of the display, viewable by the administrator.',
  182. ),
  183. 'display_plugin' => array(
  184. 'type' => 'varchar',
  185. 'length' => '64',
  186. 'default' => '',
  187. 'not null' => TRUE,
  188. 'description' => 'The type of the display. Usually page, block or embed, but is pluggable so may be other things.',
  189. ),
  190. 'position' => array(
  191. 'type' => 'int',
  192. 'default' => 0,
  193. 'description' => 'The order in which this display is loaded.',
  194. ),
  195. 'display_options' => array(
  196. // Type corrected in update 6009
  197. 'type' => 'blob',
  198. 'description' => 'A serialized array of options for this display; it contains options that are generally only pertinent to that display plugin type.',
  199. 'serialize' => TRUE,
  200. 'serialized default' => 'a:0:{}',
  201. ),
  202. ),
  203. // Added primary keys in views_schema_6008()
  204. 'indexes' => array('vid' => array('vid', 'position')),
  205. );
  206. $schema['cache_views'] = drupal_get_schema_unprocessed('system', 'cache');
  207. $schema['views_object_cache'] = array(
  208. 'description' => 'A special cache used to store objects that are being edited; it serves to save state in an ordinarily stateless environment.',
  209. 'fields' => array(
  210. 'sid' => array(
  211. 'type' => 'varchar',
  212. 'length' => '64',
  213. 'description' => 'The session ID this cache object belongs to.',
  214. ),
  215. 'name' => array(
  216. 'type' => 'varchar',
  217. 'length' => '32',
  218. 'description' => 'The name of the view this cache is attached to.',
  219. ),
  220. 'obj' => array(
  221. 'type' => 'varchar',
  222. 'length' => '32',
  223. 'description' => 'The name of the object this cache is attached to; this essentially represents the owner so that several sub-systems can use this cache.',
  224. ),
  225. 'updated' => array(
  226. 'type' => 'int',
  227. 'unsigned' => TRUE,
  228. 'not null' => TRUE,
  229. 'default' => 0,
  230. 'description' => 'The time this cache was created or updated.',
  231. ),
  232. 'data' => array(
  233. 'type' => 'blob', // Updated to 'text' (with size => 'big') in views_schema_6004()
  234. 'description' => 'Serialized data being stored.',
  235. 'serialize' => TRUE,
  236. ),
  237. ),
  238. 'indexes' => array(
  239. 'sid_obj_name' => array('sid', 'obj', 'name'),
  240. 'updated' => array('updated'),
  241. ),
  242. );
  243. // $schema['cache_views_data'] added in views_schema_6006()
  244. return $schema;
  245. }
  246. /**
  247. * Update a site to Drupal 6! Contains a bit of special code to detect
  248. * if you've been running a beta version or something.
  249. */
  250. function views_update_6000() {
  251. if (db_table_exists('views_view')) {
  252. return;
  253. }
  254. // This has the beneficial effect of wiping out any Views 1 cache at the
  255. // same time; not wiping that cache could easily cause problems with Views 2.
  256. if (db_table_exists('cache_views')) {
  257. db_drop_table('cache_views');
  258. }
  259. // This is mostly the same as drupal_install_schema, but it forces
  260. // views_schema_6000() rather than the default views_schema().
  261. // This is important for processing subsequent table updates.
  262. $schema = views_schema_6000();
  263. _drupal_schema_initialize($schema, 'views');
  264. foreach ($schema as $name => $table) {
  265. db_create_table($name, $table);
  266. }
  267. }
  268. /**
  269. * Remove '$' symbol in special blocks, as it is invalid for theming.
  270. */
  271. function views_update_6001() {
  272. $result = db_query("SELECT * FROM {blocks} WHERE module = 'views' AND delta LIKE '\$exp%'");
  273. foreach ($result as $block) {
  274. $new = strtr($block->delta, '$', '-');
  275. update_sql("UPDATE {blocks} SET delta = '" . db_escape_string($new) . "' WHERE module = 'views' AND delta = '" . db_escape_string($block->delta) . "'");
  276. }
  277. update_sql("UPDATE {blocks} SET delta = CONCAT(delta, '-block_1') WHERE module = 'views'");
  278. }
  279. // NOTE: Update 6002 removed because it did not always work.
  280. // Update 6004 implements the change correctly.
  281. /**
  282. * Add missing unique key.
  283. */
  284. function views_schema_6003() {
  285. $schema = views_schema(__FUNCTION__);
  286. $schema['views_view']['unique keys'] = array('name' => array('name'));
  287. unset($schema['views_view']['unique key']);
  288. return $schema;
  289. }
  290. function views_update_6003() {
  291. db_add_unique_key('views_view', 'name', array('name'));
  292. }
  293. /**
  294. * Enlarge the views_object_cache.data column to prevent truncation and JS
  295. * errors.
  296. */
  297. function views_schema_6004() {
  298. $schema = views_schema(__FUNCTION__);
  299. $schema['views_object_cache']['fields']['data']['type'] = 'text';
  300. $schema['views_object_cache']['fields']['data']['size'] = 'big';
  301. return $schema;
  302. }
  303. function views_update_6004() {
  304. $new_field = array(
  305. 'type' => 'text',
  306. 'size' => 'big',
  307. 'description' => 'Serialized data being stored.',
  308. 'serialize' => TRUE,
  309. );
  310. // Drop and re-add this field because there is a bug in
  311. // db_change_field that causes this to fail when trying to cast the data.
  312. db_drop_field('views_object_cache', 'data');
  313. db_add_field('views_object_cache', 'data', $new_field);
  314. }
  315. /**
  316. * Enlarge the base_table column
  317. */
  318. function views_schema_6005() {
  319. $schema = views_schema(__FUNCTION__);
  320. $schema['views_view']['fields']['base_table']['length'] = 64;
  321. return $schema;
  322. }
  323. function views_update_6005() {
  324. $new_field = array(
  325. 'type' => 'varchar',
  326. 'length' => '64',
  327. 'default' => '',
  328. 'not null' => TRUE,
  329. 'description' => 'What table this view is based on, such as node, user, comment, or term.',
  330. );
  331. db_change_field('views_view', 'base_table', 'base_table', $new_field);
  332. }
  333. /**
  334. * Add the cache_views_data table to support standard caching.
  335. */
  336. function views_schema_6006() {
  337. $schema = views_schema(__FUNCTION__);
  338. $schema['cache_views_data'] = drupal_get_schema_unprocessed('system', 'cache');
  339. $schema['cache_views_data']['description'] = 'Cache table for views to store pre-rendered queries, results, and display output.';
  340. $schema['cache_views_data']['fields']['serialized']['default'] = 1;
  341. return $schema;
  342. }
  343. function views_update_6006() {
  344. $table = drupal_get_schema_unprocessed('system', 'cache');
  345. $table['description'] = 'Cache table for views to store pre-rendered queries, results, and display output.';
  346. $table['fields']['serialized']['default'] = 1;
  347. db_create_table('cache_views_data', $table);
  348. }
  349. /**
  350. * Add aggregate function to PostgreSQL so GROUP BY can be used to force only
  351. * one result to be returned for each item.
  352. */
  353. function views_update_6007() {
  354. if (Database::getConnection()->databaseType() == 'pgsql') {
  355. db_query('CREATE OR REPLACE FUNCTION first(anyelement, anyelement) RETURNS anyelement AS \'SELECT COALESCE($1, $2);\' LANGUAGE \'sql\';');
  356. db_query("DROP AGGREGATE IF EXISTS first(anyelement)");
  357. db_query("CREATE AGGREGATE first(sfunc = first, basetype = anyelement, stype = anyelement);");
  358. }
  359. }
  360. /**
  361. * Add the primary key to views_display table.
  362. */
  363. function views_schema_6008() {
  364. $schema = views_schema(__FUNCTION__);
  365. $schema['views_display']['primary key'] = array('vid', 'id');
  366. return $schema;
  367. }
  368. /**
  369. * Add the primary key to the views_display table.
  370. */
  371. function views_update_6008() {
  372. db_add_primary_key('views_display', array('vid', 'id'));
  373. }
  374. /**
  375. * Enlarge the views_display.display_options field to accomodate a larger set
  376. * of configurations (e. g. fields, filters, etc.) on a display.
  377. */
  378. function views_schema_6009() {
  379. $schema = views_schema(__FUNCTION__);
  380. $schema['views_display']['fields']['display_options'] = array(
  381. 'type' => 'text',
  382. 'size' => 'big',
  383. 'description' => 'A serialized array of options for this display; it contains options that are generally only pertinent to that display plugin type.',
  384. 'serialize' => TRUE,
  385. 'serialized default' => 'a:0:{}',
  386. );
  387. return $schema;
  388. }
  389. function views_update_6009() {
  390. $schema = views_schema_6009();
  391. if (Database::getConnection()->databaseType() == 'pgsql') {
  392. db_query('ALTER TABLE {views_display} RENAME "display_options" TO "display_options_old"');
  393. db_add_field('views_display', 'display_options', $schema['views_display']['fields']['display_options']);
  394. $sql = "SELECT vid, id, display_options_old FROM {views_display}";
  395. $result = db_query($sql);
  396. foreach ($result as $row) {
  397. $row['display_options_old'] = $row['display_options_old'];
  398. $sql = "UPDATE {views_display} SET display_options = :display_optons WHERE vid = :vid AND id = :id";
  399. db_query($sql, array(
  400. ':display_optons' => $row['display_options_old'],
  401. ':vid' => $row['vid'],
  402. ':id' => $row['id'],
  403. ));
  404. }
  405. db_drop_field('views_display', 'display_options_old');
  406. }
  407. else {
  408. db_change_field('views_display', 'display_options', 'display_options', $schema['views_display']['fields']['display_options']);
  409. }
  410. }
  411. /**
  412. * Remove the view_php field
  413. */
  414. function views_schema_6010() {
  415. $schema = views_schema(__FUNCTION__);
  416. unset($schema['views_view']['fields']['view_php']);
  417. unset($schema['views_view']['fields']['is_cacheable']);
  418. return $schema;
  419. }
  420. /**
  421. * Remove the view_php and is_cacheable field
  422. */
  423. function views_update_6010() {
  424. db_drop_field('views_view', 'view_php');
  425. db_drop_field('views_view', 'is_cacheable');
  426. }
  427. /**
  428. * Remove views_object_cache table and move the data to ctools_object_cache.
  429. */
  430. function views_schema_6011() {
  431. $schema = views_schema(__FUNCTION__);
  432. unset($schema['views_object_cache']);
  433. return $schema;
  434. }
  435. /**
  436. * Remove views_object_cache table and move the data to ctools_object_cache.
  437. */
  438. function views_update_6011() {
  439. $caches = db_query("SELECT * FROM {views_object_cache}");
  440. foreach ($caches as $item) {
  441. drupal_write_record('ctools_object_cache', $item);
  442. }
  443. db_drop_table('views_object_cache');
  444. }
  445. /**
  446. * Correct the cache setting for exposed filter blocks.
  447. *
  448. * @see http://drupal.org/node/910864
  449. */
  450. function views_update_6012() {
  451. // There is only one simple query to run.
  452. $update = db_update('blocks')
  453. ->condition('module', 'views')
  454. ->condition('delta', db_like('-exp-') . '%', 'LIKE')
  455. ->fields(array('cache' => DRUPAL_NO_CACHE));
  456. }
  457. /**
  458. * Add a human readable name.
  459. */
  460. function views_schema_6013() {
  461. $schema = views_schema(__FUNCTION__);
  462. $schema['views_view']['fields']['human_name'] = array(
  463. 'type' => 'varchar',
  464. 'length' => '255',
  465. 'default' => '',
  466. 'description' => 'A human readable name used to be displayed in the admin interface',
  467. );
  468. return $schema;
  469. }
  470. function views_update_6013() {
  471. // Check because D6 installs may already have added this.
  472. if (!db_field_exists('views_view', 'human_name')) {
  473. $new_field = array(
  474. 'type' => 'varchar',
  475. 'length' => '255',
  476. 'default' => '',
  477. 'description' => 'A human readable name used to be displayed in the admin interface',
  478. );
  479. db_add_field('views_view', 'human_name', $new_field);
  480. }
  481. }
  482. function views_schema_6014() {
  483. $schema = views_schema(__FUNCTION__);
  484. $schema['views_view']['fields']['core'] = array(
  485. 'type' => 'int',
  486. 'default' => 0,
  487. 'description' => 'Stores the drupal core version of the view.',
  488. );
  489. return $schema;
  490. }
  491. /**
  492. * Add a drupal core version field.
  493. */
  494. function views_update_6014() {
  495. // Check because D6 installs may already have added this.
  496. if (!db_field_exists('views_view', 'core')) {
  497. $new_field = array(
  498. 'type' => 'int',
  499. 'default' => 0,
  500. 'description' => 'Stores the drupal core version of the view.',
  501. );
  502. db_add_field('views_view', 'core', $new_field);
  503. }
  504. }
  505. /**
  506. * Rename some system variables.
  507. */
  508. function views_update_7000() {
  509. // Views now lets users turn off query details on live preview.
  510. $query_on_top = variable_get('views_ui_query_on_top');
  511. if (isset($query_on_top)) {
  512. variable_set('views_ui_show_sql_query', TRUE);
  513. if ($query_on_top) {
  514. variable_set('views_ui_show_sql_query_where', 'above');
  515. }
  516. else {
  517. variable_set('views_ui_show_sql_query_where', 'below');
  518. }
  519. variable_del('views_ui_query_on_top');
  520. }
  521. // Rename the views_hide_help_message variable from negative to positive.
  522. $hide_help = variable_get('views_hide_help_message');
  523. if (isset($hide_help)) {
  524. variable_set('views_ui_show_advanced_help_warning', !$hide_help);
  525. variable_del('views_hide_help_message');
  526. }
  527. // Rename the unused views_no_hover_links variable.
  528. variable_del('views_no_hover_links');
  529. }
  530. /**
  531. * Fix missing items from Views administrative breadcrumb
  532. */
  533. function views_update_7001() {
  534. $depth = db_select('menu_links')
  535. ->fields('menu_links', array('depth'))
  536. ->condition('link_path', 'admin/structure/views/view/%')
  537. ->execute()
  538. ->fetchField();
  539. if ($depth == 3) {
  540. db_delete('menu_links')
  541. ->condition('link_path', 'admin/structure/views/%', 'LIKE')
  542. ->execute();
  543. cache_clear_all(NULL, 'cache_menu');
  544. menu_rebuild();
  545. }
  546. }
  547. function views_schema_7300() {
  548. return views_schema_6013();
  549. }
  550. /**
  551. * Make sure the human_name field is added to the views_view table.
  552. *
  553. * If you updated from 6.x-2.x-dev to 7.x-3.x you already had schema
  554. * version 6014, so update 6013 never was nor will be run. As a result,
  555. * the human_name field is missing from the database.
  556. *
  557. * This will add the human_name field if it doesn't already exist.
  558. */
  559. function views_update_7300() {
  560. views_update_6013();
  561. }
  562. function views_schema_7301() {
  563. $schema = views_schema(__FUNCTION__);
  564. $schema['views_view']['fields']['name']['length'] = 128;
  565. return $schema;
  566. }
  567. /**
  568. * Enlarge the name column
  569. */
  570. function views_update_7301() {
  571. $new_field = array(
  572. 'type' => 'varchar',
  573. 'length' => '128',
  574. 'default' => '',
  575. 'not null' => TRUE,
  576. 'description' => 'The unique name of the view. This is the primary field views are loaded from, and is used so that views may be internal and not necessarily in the database. May only be alphanumeric characters plus underscores.',
  577. );
  578. db_change_field('views_view', 'name', 'name', $new_field);
  579. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.