Skip to content

Commit

Permalink
fix: use getFields function to fetch field data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Feb 26, 2024
1 parent 48a3ff4 commit 1f97036
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 1 addition & 9 deletions source/php/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class Module extends \Modularity\Module

public function data() : array
{
//$data['classes'] = implode(' ', apply_filters('Modularity/Module/Classes', array('c-card','c-card--panel','c-card--default'), $this->post_type, $this->args));
$data['options'] = get_fields($this->ID);
$data['options'] = $this->getFields();

if (
!self::isApiError(
Expand Down Expand Up @@ -60,9 +59,6 @@ public function data() : array
* @return void
*/
public function style() {
if (!$this->hasModule()) {
return;
}
\ApiAlarmIntegration\App::enqueueStyle();
}

Expand All @@ -72,10 +68,6 @@ public function style() {
*/
public function script()
{
if (!$this->hasModule()) {
return;
}

\ApiAlarmIntegration\App::enqueueAlarmScripts();
}

Expand Down
1 change: 0 additions & 1 deletion templates/alarms.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@card([
'heading' => $hideTitle ? $post_title : '',
'classList' => [
$classes,
'c-card--panel'
],
'id' => 'mod-alarm',
Expand Down

0 comments on commit 1f97036

Please sign in to comment.