-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16da482
commit 5509c75
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace Craft; | ||
|
||
class QuickFieldService extends BaseApplicationComponent | ||
{ | ||
public function getFieldTypes() | ||
{ | ||
$fieldTypes = craft()->fields->getAllFieldTypes(); | ||
|
||
if(craft()->plugins->getPlugin('neo')) | ||
{ | ||
return array_filter($fieldTypes, function($fieldType) | ||
{ | ||
return !($fieldType instanceof NeoFieldType); | ||
}); | ||
} | ||
|
||
return $fieldTypes; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
namespace Craft; | ||
|
||
class QuickFieldVariable | ||
{ | ||
public function getFieldTypes() | ||
{ | ||
$fieldTypes = craft()->quickField->getFieldTypes(); | ||
return FieldTypeVariable::populateVariables($fieldTypes); | ||
} | ||
} |