Commit 7bcfc62f authored by Nigel McNie's avatar Nigel McNie
Browse files

Disable the search tab for these blocktypes, which don't need it.

parent a18017d5
......@@ -125,6 +125,7 @@ class PluginBlocktypeContactinfo extends PluginBlocktype {
'blocktype' => 'contactinfo',
'limit' => 655360, // 640K profile fields is enough for anyone!
'selectone' => false,
'search' => false,
'artefacttypes' => array_diff(PluginArtefactInternal::get_contactinfo_artefact_types(), array('email')),
'template' => 'artefact:internal:artefactchooser-element.tpl',
);
......
......@@ -186,6 +186,7 @@ class PluginBlocktypeProfileinfo extends PluginBlocktype {
'blocktype' => 'profileinfo',
'limit' => 655360, // 640K profile fields is enough for anyone!
'selectone' => false,
'search' => false,
'artefacttypes' => array_diff(PluginArtefactInternal::get_artefact_types(), array('profileicon', 'email')),
'template' => 'artefact:internal:artefactchooser-element.tpl',
);
......
......@@ -94,6 +94,7 @@ class PluginBlocktypeResumefield extends PluginBlocktype {
'blocktype' => 'resumefield',
'limit' => 655360, // 640K profile fields is enough for anyone!
'selectone' => true,
'search' => false,
'artefacttypes' => PluginArtefactResume::get_artefact_types(),
'template' => 'artefact:resume:artefactchooser-element.tpl',
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment